aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jim@pingle.org>2010-01-28 14:18:20 -0500
committerjim-p <jim@pingle.org>2010-01-28 14:20:08 -0500
commit156627275e083cb09e06322669f34dffb6fab7df (patch)
tree2e4490b6019ca4933c7536d2207ee9e88841c730
parent6c9de56bdee8fd2937832abcf125c5a49a3ee80f (diff)
downloadpfsense-packages-156627275e083cb09e06322669f34dffb6fab7df.tar.gz
pfsense-packages-156627275e083cb09e06322669f34dffb6fab7df.tar.bz2
pfsense-packages-156627275e083cb09e06322669f34dffb6fab7df.zip
Fix permissions on ntop package sync. Command was also missing full path.
-rw-r--r--config/ntop/ntop.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/ntop/ntop.xml b/config/ntop/ntop.xml
index bc01e46f..3b50c847 100644
--- a/config/ntop/ntop.xml
+++ b/config/ntop/ntop.xml
@@ -109,8 +109,8 @@
system("/bin/mkdir -p /var/db/ntop");
system("/bin/mkdir -p /var/db/ntop/rrd");
system("/bin/mkdir -p /var/db/ntop/rrd/graphics");
- system("chown nobody:nobody /var/db/ntop");
- system("chown nobody:nobody /var/db/ntop/rrd/graphics");
+ system("/bin/chmod -R 755 /var/db/ntop");
+ system("/usr/sbin/chown -R nobody:nobody /var/db/ntop");
if($ntop_config['password'] and $ntop_config['passwordagain']) {
if($ntop_config['password'] == $ntop_config['passwordagain']) {
$first = 0;