restructure file layout
This commit is contained in:
parent
60bb9d17bc
commit
1e5928f613
|
@ -1,5 +1,18 @@
|
|||
#!/bin/sh
|
||||
|
||||
# default scripts to use
|
||||
_script_dir='./debian10/scripts'
|
||||
|
||||
if [ -n "$1" ] ; then
|
||||
_script_dir="./$1/scripts/"
|
||||
if ! [ -d "$_script_dir" ] ; then
|
||||
echo "Error: script directory not found '$_script_dir'"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Using Scripts in: $_script_dir"
|
||||
|
||||
# source our config files
|
||||
for _file in ./config/local/* ; do
|
||||
. "$_file"
|
||||
|
@ -15,31 +28,31 @@ ssh -T $ssh << EOSSH
|
|||
EOSSH
|
||||
echo "Update complete"
|
||||
|
||||
. ./scripts/install-user.sh
|
||||
. ./scripts/install-base.sh
|
||||
. "$_script_dir/install-user.sh"
|
||||
. "$_script_dir/install-base.sh"
|
||||
|
||||
if [ -n "$php_version" ] ; then
|
||||
. ./scripts/install-php.sh
|
||||
. "$_script_dir/install-php.sh"
|
||||
fi
|
||||
|
||||
if [ -n "$mariadb_version" ] ; then
|
||||
. ./scripts/install-mariadb.sh
|
||||
. "$_script_dir/install-mariadb.sh"
|
||||
elif [ -n "$mysql_version" ] ; then
|
||||
. ./scripts/install-mysql.sh
|
||||
. "$_script_dir/install-mysql.sh"
|
||||
fi
|
||||
|
||||
if [ -n "$apache2_version" ] ; then
|
||||
. ./scripts/install-apache2.sh
|
||||
. "$_script_dir/install-apache2.sh"
|
||||
elif [ -n "$nginx_version" ] ; then
|
||||
# TODO nginx install script
|
||||
echo 'TODO . ./scripts/install-nginx.sh'
|
||||
echo 'TODO - nginx install script'
|
||||
elif [ -n "$litespeed_version" ] ; then
|
||||
# TODO
|
||||
echo 'TODO . ./scripts/install-litespeed.sh'
|
||||
echo 'TODO litespeed install script'
|
||||
fi
|
||||
|
||||
if [ -n "$wp_user" ] ; then
|
||||
. ./scripts/install-wordpress.sh
|
||||
. "$_script_dir/install-wordpress.sh"
|
||||
fi
|
||||
|
||||
# TODO source dev env script
|
Loading…
Reference in New Issue