diff options
author | Ermal <eri@pfsense.org> | 2014-02-20 09:02:10 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2014-02-20 09:02:10 +0000 |
commit | 49a8ee7f82647b75fa2953414816fb694c78d9cf (patch) | |
tree | 737e19f86dd3ba65dd78aa7b02449c493e1f1548 | |
parent | 9c8f0a3a1bdcad477d59853d84b640eaa9e3eead (diff) | |
download | pfsense-49a8ee7f82647b75fa2953414816fb694c78d9cf.zip pfsense-49a8ee7f82647b75fa2953414816fb694c78d9cf.tar.gz |
Do not show errors on bootup and test before trying to make a directory if it exists
-rw-r--r-- | etc/inc/system.inc | 3 |
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 { |