Commit d29d3471 authored by anarcat's avatar anarcat Committed by anarcat
Browse files

configure apache properly after installation, fix permissions

parent 38e5d3ef
......@@ -58,7 +58,7 @@ case "$1" in
# fix permissions on installed directories
chown aegir:aegir "$VARLIB"
for dir in /var/aegir ; do
for dir in "$VARLIB"/backups "$VARLIB"/config ; do
chown aegir:aegir $dir
chmod 0700 $dir
......@@ -93,6 +93,8 @@ case "$1" in
# this obviously doesn't work for git releases
VERSION=`sed -ne '/{s/^.*hostmaster-//;s/.tgz"//;p}' /usr/share/drush/commands/provision/aegir.make`
su aegir -c "drush hostmaster-install --yes --version='$VERSION' --aegir_db_host='$AEGIR_DB_HOST' --aegir_db_user='$AEGIR_DB_USER' --aegir_db_pass='$AEGIR_DB_PASS' --client_email='$EMAIL' $MAKEFILE $SITE"
ln -s $VARLIB/config/apache.conf /etc/apache2/conf.d/aegir.conf
apache2ctl graceful
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment