update and upgrade distibution
This commit is contained in:
parent
d56f9d16f1
commit
bd9c597d76
|
@ -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?
|
Loading…
Reference in New Issue