Commit 6ad3ff69 authored by anarcat's avatar anarcat
Browse files

abort earlier if provision is already installed

parent caa68306
......@@ -24,6 +24,11 @@ VARLIB="/var/aegir"
case "$1" in
configure)
if [ -d $VARLIB/.drush/provision ]; then
echo "existing provision in $VARLIB/.drush/provision detected, move away and try again"
exit 1
fi
# add a aegir user if one does not already exist
if ! getent passwd aegir >/dev/null ; then
echo "adding aegir user..."
......@@ -44,11 +49,6 @@ case "$1" in
echo "copy content of /usr/share/doc/aegir-provision/examples/examples.sudoers into /etc/sudoers for aegir to run properly"
fi
if [ -d $VARLIB/.drush/provision ]; then
echo "existing provision in $VARLIB/.drush/provision detected, move away and try again"
exit 1
fi
# fix permissions on installed directories
chown aegir:aegir "$VARLIB"
# make sure we have apache configs settled in, for remote headless aegir servers
......
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