diff options
author | Perry Mason <crazypark2@yahoo.dk> | 2011-02-26 10:29:22 +0100 |
---|---|---|
committer | Perry Mason <crazypark2@yahoo.dk> | 2011-02-26 10:29:22 +0100 |
commit | aa7d47b8f3f272e14716285cd96a7197bca57aae (patch) | |
tree | 2ca2482fb8e021b09017a06f8f38a03d14d5db18 /config/vnstat2/vnstat2.inc | |
parent | e8fe8f1ee57a15d76aebe7baf9482c129aadc014 (diff) | |
download | pfsense-packages-aa7d47b8f3f272e14716285cd96a7197bca57aae.tar.gz pfsense-packages-aa7d47b8f3f272e14716285cd96a7197bca57aae.tar.bz2 pfsense-packages-aa7d47b8f3f272e14716285cd96a7197bca57aae.zip |
[vnstat2] On pfsense upgrade don't move DB dir as vlan filenames will be wrong
Diffstat (limited to 'config/vnstat2/vnstat2.inc')
-rw-r--r-- | config/vnstat2/vnstat2.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/vnstat2/vnstat2.inc b/config/vnstat2/vnstat2.inc index 837b5294..9e184758 100644 --- a/config/vnstat2/vnstat2.inc +++ b/config/vnstat2/vnstat2.inc @@ -148,9 +148,10 @@ function vnstat_install_config() { global $config; conf_mount_rw(); // Create vnstat database dir where it also will work for nanobsd - exec("[ -d /var/db/vnstat ] && mv /var/db/pkg/vnstat /conf/vnstat"); +// exec("[ -d /var/db/vnstat ] && mv /var/db/vnstat /conf/vnstat"); exec("[ -d /usr/local/pkg/vnstat ] && mv /usr/local/pkg/vnstat /conf/vnstat"); exec("[ ! -d /conf/vnstat ] && mkdir /conf/vnstat"); +// Copy files to web dir exec("[ ! -f /usr/local/www/diag_vnstat2.php ] && cp /usr/local/pkg/diag_vnstat2.abc /usr/local/www/diag_vnstat2.php"); exec("[ ! -f /usr/local/www/diag_vnstat.php ] && cp /usr/local/pkg/diag_vnstat.abc /usr/local/www/diag_vnstat.php"); exec("[ ! -f /usr/local/www/vnstati.php ] && cp /usr/local/pkg/vnstati.abc /usr/local/www/vnstati.php"); |