Avoid a warning if directory exists
PHP Warning: mkdir(): File exists in /usr/lib/alternc/install.d/alternc-ssl on line 12
This commit is contained in:
parent
c8b3d1af2a
commit
d375dc2c7c
|
@ -9,7 +9,9 @@ if ($argv[1] == "templates") {
|
||||||
// install ssl.conf
|
// install ssl.conf
|
||||||
echo "[alternc-ssl] Installing ssl.conf template\n";
|
echo "[alternc-ssl] Installing ssl.conf template\n";
|
||||||
copy("/etc/alternc/templates/apache2/mods-available/ssl.conf","/etc/apache2/mods-available/ssl.conf");
|
copy("/etc/alternc/templates/apache2/mods-available/ssl.conf","/etc/apache2/mods-available/ssl.conf");
|
||||||
mkdir("/var/run/alternc-ssl");
|
if (!is_dir('/var/run/alternc-ssl')) {
|
||||||
|
mkdir("/var/run/alternc-ssl");
|
||||||
|
}
|
||||||
chown("/var/run/alternc-ssl","alterncpanel");
|
chown("/var/run/alternc-ssl","alterncpanel");
|
||||||
chgrp("/var/run/alternc-ssl","alterncpanel");
|
chgrp("/var/run/alternc-ssl","alterncpanel");
|
||||||
// replace open_basedir line if necessary :
|
// replace open_basedir line if necessary :
|
||||||
|
|
Loading…
Reference in New Issue