summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-02-20 09:02:10 +0000
committerErmal <eri@pfsense.org>2014-02-20 09:02:10 +0000
commit49a8ee7f82647b75fa2953414816fb694c78d9cf (patch)
tree737e19f86dd3ba65dd78aa7b02449c493e1f1548 /etc
parent9c8f0a3a1bdcad477d59853d84b640eaa9e3eead (diff)
downloadpfsense-49a8ee7f82647b75fa2953414816fb694c78d9cf.zip
pfsense-49a8ee7f82647b75fa2953414816fb694c78d9cf.tar.gz
Do not show errors on bootup and test before trying to make a directory if it exists
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/system.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index a456070..30c2a97 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -875,7 +875,8 @@ function system_generate_lighty_config($filename,
$captive_portal_mod_evasive = "evasive.max-conns-per-ip = {$maxprocperip}";
$server_upload_dirs = "server.upload-dirs = ( \"{$g['tmp_path']}/captiveportal/\" )\n";
- mkdir("{$g['tmp_path']}/captiveportal", 0555);
+ if (!is_dir("{$g['tmp_path']}/captiveportal"))
+ @mkdir("{$g['tmp_path']}/captiveportal", 0555);
$server_max_request_size = "server.max-request-size = 384";
$cgi_config = "";
} else {
OpenPOWER on IntegriCloud