34 lines
519 B
Bash
Executable File
34 lines
519 B
Bash
Executable File
#!/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?
|