update and upgrade distibution

This commit is contained in:
Ray Elliott 2020-09-03 14:46:19 +01:00
parent d56f9d16f1
commit bd9c597d76
1 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,33 @@
#!/bin/sh
# source all files in ./config/
for _file in ./config/local/* ; do
. "$_file"
done
# check we have ssh access
[ -z "$ssh" ] && echo "Error: no ssh configuration specified" && exit 5
echo "Updating ..":
ssh -T $ssh << EOSSH
apt-get update && apt-get upgrade
EOSSH
echo "Update complete"
exit
# source user script
. ./scripts/install-user.sh
# source base script
# . ./scripts/install-base.sh
# source php script?
# source database script?
# source web server script?
# source application script?