skip last steps of alternc.install on slaves

otherwise they explode in pain (for example by creating an admin user,
changing permissions on the NFS or trying to access the master
database with the wrong database schema in mind, all fun stuff)
This commit is contained in:
Antoine Beaupré 2013-01-08 20:33:28 +00:00
parent 58f5203f87
commit a8fe50ccff
1 changed files with 5 additions and 0 deletions

View File

@ -409,6 +409,11 @@ tar -zcf "$INSTALLED_CONFIG_TAR" -C / $CONFIG_FILES
# Last touches
#
# remaining steps are only for the master
if [ "$slave" = "1" ]; then
exit 0
fi
chown alterncpanel:alterncpanel "$ALTERNC_LOC/html/"*
setfacl -b -k -m d:g:alterncpanel:rw- -m g:alterncpanel:rw- "$ALTERNC_LOC/html/"*