diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-11-27 07:46:58 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-11-27 07:46:58 -0200 |
commit | 23c5cf732a9ebbb70cc80030c6fdf925429fcd70 (patch) | |
tree | 81413a766b100389e0f2ff5c0cdd6a814d4ee86c /etc | |
parent | a7f79eda30c2fab052ce0fd06e31f0d0e11fcb83 (diff) | |
parent | 3cd3cbd2b1bc984d39659be2acc66c73ccea250b (diff) | |
download | pfsense-23c5cf732a9ebbb70cc80030c6fdf925429fcd70.zip pfsense-23c5cf732a9ebbb70cc80030c6fdf925429fcd70.tar.gz |
Merge pull request #1349 from phil-davis/patch-5
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/gwlb.inc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc index 33ec09c..0cd31f3 100644 --- a/etc/inc/gwlb.inc +++ b/etc/inc/gwlb.inc @@ -151,6 +151,13 @@ target default { EOD; + if (is_dir("{$g['tmp_path']}")) + chmod("{$g['tmp_path']}", 01777); + if (!is_dir("{$g['vardb_path']}/rrd")) + mkdir("{$g['vardb_path']}/rrd", 0775); + + @chown("{$g['vardb_path']}/rrd", "nobody"); + $monitor_ips = array(); foreach($gateways_arr as $name => $gateway) { /* Do not monitor if such was requested */ @@ -337,13 +344,6 @@ EOD; @file_put_contents("{$g['varetc_path']}/apinger.conf", $apingerconfig); unset($apingerconfig); - if (is_dir("{$g['tmp_path']}")) - chmod("{$g['tmp_path']}", 01777); - if (!is_dir("{$g['vardb_path']}/rrd")) - mkdir("{$g['vardb_path']}/rrd", 0775); - - @chown("{$g['vardb_path']}/rrd", "nobody"); - /* Restart apinger process */ if (isvalidpid("{$g['varrun_path']}/apinger.pid")) sigkillbypid("{$g['varrun_path']}/apinger.pid", "HUP"); |