Au cas ou /var/run/alternc soit manquant (normalement créé au boot)

This commit is contained in:
Alan Garcia 2013-10-17 08:42:11 +00:00
parent 205d5821cd
commit b3061deb6d
1 changed files with 3 additions and 0 deletions

View File

@ -119,6 +119,9 @@ fi
chown :alterncpanel /etc/alternc/local.sh
. /etc/alternc/local.sh
# May be missing
test -d /var/run/alternc || ( mkdir -p /var/run/alternc && chown alterncpanel:alterncpanel /var/run/alternc )
# Create the target directory
for i in "$ALTERNC_HTML" "$ALTERNC_MAIL" "$ALTERNC_LOGS" ; do
test -d "$i" || mkdir -p "$i"