Au cas ou /var/run/alternc soit manquant (normalement créé au boot)
This commit is contained in:
parent
205d5821cd
commit
b3061deb6d
|
@ -119,6 +119,9 @@ fi
|
||||||
chown :alterncpanel /etc/alternc/local.sh
|
chown :alterncpanel /etc/alternc/local.sh
|
||||||
. /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
|
# Create the target directory
|
||||||
for i in "$ALTERNC_HTML" "$ALTERNC_MAIL" "$ALTERNC_LOGS" ; do
|
for i in "$ALTERNC_HTML" "$ALTERNC_MAIL" "$ALTERNC_LOGS" ; do
|
||||||
test -d "$i" || mkdir -p "$i"
|
test -d "$i" || mkdir -p "$i"
|
||||||
|
|
Loading…
Reference in New Issue