Compare commits
2 Commits
021d36b131
...
a68f71337b
Author | SHA1 | Date |
---|---|---|
Ray Elliott | a68f71337b | |
Ray Elliott | f80d9ad08b |
|
@ -1,6 +1,6 @@
|
|||
## wordpress configuration - uncomment if using wordpress
|
||||
|
||||
# export wp_user='admin'
|
||||
export wp_user='admin'
|
||||
# export wp_pass='admin'
|
||||
|
||||
## leave commented if using default
|
|
@ -1,33 +1,43 @@
|
|||
#!/bin/sh
|
||||
|
||||
# source all files in ./config/
|
||||
|
||||
# source our config files
|
||||
for _file in ./config/local/* ; do
|
||||
. "$_file"
|
||||
done
|
||||
|
||||
# check we have ssh access
|
||||
|
||||
[ -z "$ssh" ] && echo "Error: no ssh configuration specified" && exit 5
|
||||
|
||||
# update local server
|
||||
echo "Updating ..":
|
||||
ssh -T $ssh << EOSSH
|
||||
apt-get update && apt-get upgrade
|
||||
EOSSH
|
||||
echo "Update complete"
|
||||
|
||||
exit
|
||||
|
||||
# source user script
|
||||
. ./scripts/install-user.sh
|
||||
. ./scripts/install-base.sh
|
||||
|
||||
# source base script
|
||||
# . ./scripts/install-base.sh
|
||||
if [ -n "$php_version" ] ; then
|
||||
. ./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?
|
||||
|
||||
# source web server script?
|
||||
if [ -n "$apache2_version" ] ; then
|
||||
. ./scripts/install-apache2.sh
|
||||
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 dev env script
|
||||
|
|
Loading…
Reference in New Issue