From a8fe50ccff091c47abc8f9ccd96dc9672d708e7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Tue, 8 Jan 2013 20:33:28 +0000 Subject: [PATCH] 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) --- install/alternc.install | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install/alternc.install b/install/alternc.install index 1cf0b386..911ad2c2 100644 --- a/install/alternc.install +++ b/install/alternc.install @@ -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/"*