Fixing bug in config script acl checking
This commit is contained in:
parent
6e6982c89d
commit
306e1797ca
|
@ -75,7 +75,7 @@ FQDN="`(cat /etc/mailname 2>/dev/null || hostname -f)|tr '[:upper:]' '[:lower:]'
|
|||
INTERNAL_IP="`env LANG=C /sbin/ifconfig|grep inet | grep -v 127.0.0.1| head -1 | cut -d: -f2 | sed -e 's/\([0-9\.]*\).*$/\1/' 2>/dev/null || hostname -f`"
|
||||
PUBLIC_IP="$INTERNAL_IP"
|
||||
DEFAULT_MX="`cat /etc/mailname 2>/dev/null || hostname -f`"
|
||||
ALTERNC_HTML="/var/www/alternc"
|
||||
ALTERNC_HTML="/var/www/alternc/"
|
||||
ALTERNC_MAIL="/var/mail/alternc"
|
||||
ALTERNC_LOGS="/var/log/alternc/sites/"
|
||||
NS1_HOSTNAME="$FQDN"
|
||||
|
@ -192,8 +192,8 @@ while [ "$QUEST_STATE" != 0 -a "$QUEST_STATE" != 13 ]; do
|
|||
|
||||
ALTERNC_HTML="$RET"
|
||||
#checking acl and quota activation.
|
||||
MOUNT_POINT=$(df -P ${LOCATION%/*} | tail -n 1 | awk '{print $6}')
|
||||
aclcheckfile="$LOCATION"."test-acl"
|
||||
MOUNT_POINT=$(df -P ${ALERNC_HTML%/*} | tail -n 1 | awk '{print $6}')
|
||||
aclcheckfile="$ALTERNC_HTML/test-acl"
|
||||
touch "$aclcheckfile"
|
||||
setfacl -m u:root:rwx "$aclcheckfile" 2>/dev/null || ( echo "Error : ACL aren't activated on $ALTERNC_HTML AlternC can't work without it." ; exit 2)
|
||||
|
||||
|
|
Loading…
Reference in New Issue