Compare commits
2 Commits
60bb9d17bc
...
2e8fb2edb9
Author | SHA1 | Date |
---|---|---|
Ray Elliott | 2e8fb2edb9 | |
Ray Elliott | 1e5928f613 |
|
@ -1,5 +1,18 @@
|
||||||
#!/bin/sh
|
#!/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
|
# source our config files
|
||||||
for _file in ./config/local/* ; do
|
for _file in ./config/local/* ; do
|
||||||
. "$_file"
|
. "$_file"
|
||||||
|
@ -15,31 +28,31 @@ ssh -T $ssh << EOSSH
|
||||||
EOSSH
|
EOSSH
|
||||||
echo "Update complete"
|
echo "Update complete"
|
||||||
|
|
||||||
. ./scripts/install-user.sh
|
. "$_script_dir/install-user.sh"
|
||||||
. ./scripts/install-base.sh
|
. "$_script_dir/install-base.sh"
|
||||||
|
|
||||||
if [ -n "$php_version" ] ; then
|
if [ -n "$php_version" ] ; then
|
||||||
. ./scripts/install-php.sh
|
. "$_script_dir/install-php.sh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$mariadb_version" ] ; then
|
if [ -n "$mariadb_version" ] ; then
|
||||||
. ./scripts/install-mariadb.sh
|
. "$_script_dir/install-mariadb.sh"
|
||||||
elif [ -n "$mysql_version" ] ; then
|
elif [ -n "$mysql_version" ] ; then
|
||||||
. ./scripts/install-mysql.sh
|
. "$_script_dir/install-mysql.sh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$apache2_version" ] ; then
|
if [ -n "$apache2_version" ] ; then
|
||||||
. ./scripts/install-apache2.sh
|
. "$_script_dir/install-apache2.sh"
|
||||||
elif [ -n "$nginx_version" ] ; then
|
elif [ -n "$nginx_version" ] ; then
|
||||||
# TODO nginx install script
|
# TODO nginx install script
|
||||||
echo 'TODO . ./scripts/install-nginx.sh'
|
echo 'TODO - nginx install script'
|
||||||
elif [ -n "$litespeed_version" ] ; then
|
elif [ -n "$litespeed_version" ] ; then
|
||||||
# TODO
|
# TODO
|
||||||
echo 'TODO . ./scripts/install-litespeed.sh'
|
echo 'TODO litespeed install script'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$wp_user" ] ; then
|
if [ -n "$wp_user" ] ; then
|
||||||
. ./scripts/install-wordpress.sh
|
. "$_script_dir/install-wordpress.sh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# TODO source dev env script
|
# TODO source dev env script
|
Loading…
Reference in New Issue