diff options
author | Perry Mason <crazypark2@yahoo.dk> | 2010-01-24 13:32:40 +0100 |
---|---|---|
committer | Perry Mason <crazypark2@yahoo.dk> | 2010-01-24 13:32:40 +0100 |
commit | c072a2714851414147f0d0d2c57a3cfca5d2dcef (patch) | |
tree | 71e60d1713c2047e45b9130b71d66b8e1a7ca6d3 /config/vnstat2 | |
parent | fb36298e77833a52c6a4a41e8ce5d6daea9f04d5 (diff) | |
download | pfsense-packages-c072a2714851414147f0d0d2c57a3cfca5d2dcef.tar.gz pfsense-packages-c072a2714851414147f0d0d2c57a3cfca5d2dcef.tar.bz2 pfsense-packages-c072a2714851414147f0d0d2c57a3cfca5d2dcef.zip |
[vnstat2]fix url
Diffstat (limited to 'config/vnstat2')
-rw-r--r-- | config/vnstat2/vnstat2.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/config/vnstat2/vnstat2.inc b/config/vnstat2/vnstat2.inc index 48b91805..ff8b84a2 100644 --- a/config/vnstat2/vnstat2.inc +++ b/config/vnstat2/vnstat2.inc @@ -4,7 +4,7 @@ function vnstat_install_deinstall() { global $config; // Remove Vnstat package and files exec("cd /var/db/pkg/ && pkg_delete `ls | grep vnstat`"); - exec("rm -d -R /usr/local/www/vnstat"); + exec("rm -d -R /usr/local/www/vnstat2"); // Remove vnstat cron entry from config.xml $task_key = '/usr/local/bin/vnstat -u'; $x_name=''; @@ -28,11 +28,11 @@ function vnstat_install_deinstall() { function vnstat_install_config() { global $config; conf_mount_rw(); + exec("[ ! -d dir ] && mkdir /var/db/vnstat"); // Unpack and move Vnstat frontend exec("cd .."); exec("tar -zxovf /usr/local/pkg/vnstat_php_frontend-1.4.1.tar.gz"); exec("mv vnstat_php_frontend-1.4.1 /usr/local/www/vnstat2"); - exec("[ ! -d dir ] && mkdir /var/db/vnstat"); // Add cron job to config.xml $cron_item = array(); $cron_item['minute'] = "*/1"; @@ -218,9 +218,9 @@ $graph_format2 ?> EOF; - $hf = fopen("/usr/local/www/vnstat/config.php","w"); + $hf = fopen("/usr/local/www/vnstat2/config.php","w"); if(!$hf) { - log_error("could not open /usr/local/www/vnstat/config.php for writing"); + log_error("could not open /usr/local/www/vnstat2/config.php for writing"); exit; } fwrite($hf, $config_file); |