update install modules

This commit is contained in:
Ray Elliott 2020-09-03 20:40:25 +01:00
parent 021d36b131
commit f80d9ad08b
1 changed files with 22 additions and 12 deletions

View File

@ -1,33 +1,43 @@
#!/bin/sh #!/bin/sh
# source all files in ./config/ # source our config files
for _file in ./config/local/* ; do for _file in ./config/local/* ; do
. "$_file" . "$_file"
done done
# check we have ssh access # check we have ssh access
[ -z "$ssh" ] && echo "Error: no ssh configuration specified" && exit 5 [ -z "$ssh" ] && echo "Error: no ssh configuration specified" && exit 5
# update local server
echo "Updating ..": echo "Updating ..":
ssh -T $ssh << EOSSH ssh -T $ssh << EOSSH
apt-get update && apt-get upgrade apt-get update && apt-get upgrade
EOSSH EOSSH
echo "Update complete" echo "Update complete"
exit
# source user script
. ./scripts/install-user.sh . ./scripts/install-user.sh
. ./scripts/install-base.sh
# source base script if [ -n "$php_version" ] ; then
# . ./scripts/install-base.sh . ./scripts/install-php.sh
fi
# source php script? if [ -n "$mariadb_version" ] ; then
. ./scripts/install-mariadb.sh
elif [ -n "$mysql_version" ] ; then
. ./scripts/install-mysql.sh
fi
# source database script? if [ -n "$apache2_version" ] ; then
. ./scripts/install-apache2.sh
# source web server script? elif [ -n "$nginx_version" ] ; then
# TODO nginx install script
echo 'TODO . ./scripts/install-nginx.sh'
elif [ -n "$litespeed_version" ] ; then
# TODO
echo 'TODO . ./scripts/install-litespeed.sh'
fi
# source application script? # source application script?
# source dev env script