Compare commits
No commits in common. "a68f71337bb8c24b45551a269aade2b23e1c8833" and "021d36b1313a374fe791cfa2abea62dabcf0b35f" have entirely different histories.
a68f71337b
...
021d36b131
|
@ -1,6 +1,6 @@
|
||||||
## wordpress configuration - uncomment if using wordpress
|
## wordpress configuration - uncomment if using wordpress
|
||||||
|
|
||||||
export wp_user='admin'
|
# export wp_user='admin'
|
||||||
# export wp_pass='admin'
|
# export wp_pass='admin'
|
||||||
|
|
||||||
## leave commented if using default
|
## leave commented if using default
|
|
@ -1,43 +1,33 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# source our config files
|
# source all files in ./config/
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
if [ -n "$php_version" ] ; then
|
# source base script
|
||||||
. ./scripts/install-php.sh
|
# . ./scripts/install-base.sh
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "$mariadb_version" ] ; then
|
# source php script?
|
||||||
. ./scripts/install-mariadb.sh
|
|
||||||
elif [ -n "$mysql_version" ] ; then
|
|
||||||
. ./scripts/install-mysql.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "$apache2_version" ] ; then
|
# source database script?
|
||||||
. ./scripts/install-apache2.sh
|
|
||||||
elif [ -n "$nginx_version" ] ; then
|
# source web server script?
|
||||||
# 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
|
|
||||||
|
|
Loading…
Reference in New Issue