Compare commits

..

No commits in common. "2e8fb2edb9a08e4a9c9dce150df33cdd6bc40489" and "60bb9d17bce06019d1ddd585b487032f79a8c6f8" have entirely different histories.

31 changed files with 9 additions and 22 deletions

View File

@ -1,18 +1,5 @@
#!/bin/sh
# default scripts to use
_script_dir='./scripts/debian10'
if [ -n "$1" ] ; then
_script_dir="./scripts/$1"
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"
@ -28,31 +15,31 @@ ssh -T $ssh << EOSSH
EOSSH
echo "Update complete"
. "$_script_dir/install-user.sh"
. "$_script_dir/install-base.sh"
. ./scripts/install-user.sh
. ./scripts/install-base.sh
if [ -n "$php_version" ] ; then
. "$_script_dir/install-php.sh"
. ./scripts/install-php.sh
fi
if [ -n "$mariadb_version" ] ; then
. "$_script_dir/install-mariadb.sh"
. ./scripts/install-mariadb.sh
elif [ -n "$mysql_version" ] ; then
. "$_script_dir/install-mysql.sh"
. ./scripts/install-mysql.sh
fi
if [ -n "$apache2_version" ] ; then
. "$_script_dir/install-apache2.sh"
. ./scripts/install-apache2.sh
elif [ -n "$nginx_version" ] ; then
# TODO nginx install script
echo 'TODO - nginx install script'
echo 'TODO . ./scripts/install-nginx.sh'
elif [ -n "$litespeed_version" ] ; then
# TODO
echo 'TODO litespeed install script'
echo 'TODO . ./scripts/install-litespeed.sh'
fi
if [ -n "$wp_user" ] ; then
. "$_script_dir/install-wordpress.sh"
. ./scripts/install-wordpress.sh
fi
# TODO source dev env script