aboutsummaryrefslogtreecommitdiffstats
path: root/config/vnstat2
diff options
context:
space:
mode:
authorparawizard <bryan.paradis@gmail.com>2014-01-15 23:20:11 -0500
committerparawizard <bryan.paradis@gmail.com>2014-01-15 23:20:11 -0500
commit5467c41f142542f428e6aa13442c775a465e34ae (patch)
tree21ff93d7b07ba1a82e6a4081cfb5677d09541761 /config/vnstat2
parent163cd2afa44a70b0730f4b5f7aa6b9c8e781b85c (diff)
downloadpfsense-packages-5467c41f142542f428e6aa13442c775a465e34ae.tar.gz
pfsense-packages-5467c41f142542f428e6aa13442c775a465e34ae.tar.bz2
pfsense-packages-5467c41f142542f428e6aa13442c775a465e34ae.zip
Added links to fix pbi problem /w i386 and amd64
Line 154 // Check for pbi install and arch type then create symlinks if (file_exists('/usr/pbi/vnstat-i386')) { exec("ln -s /usr/local/etc/vnstat.conf /usr/pbi/vnstat-i386/etc/vnstat.conf"); } if (file_exists('/usr/pbi/vnstat-amd64')) { exec("ln -s /usr/local/etc/vnstat.conf /usr/pbi/vnstat-amd64/etc/vnstat.conf"); }
Diffstat (limited to 'config/vnstat2')
-rw-r--r--config/vnstat2/vnstat2.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/vnstat2/vnstat2.inc b/config/vnstat2/vnstat2.inc
index 9e184758..f0b76989 100644
--- a/config/vnstat2/vnstat2.inc
+++ b/config/vnstat2/vnstat2.inc
@@ -151,6 +151,9 @@ function vnstat_install_config() {
// 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");
+// Check for pbi install and arch type then create symlinks
+ if (file_exists('/usr/pbi/vnstat-i386')) { exec("ln -s /usr/local/etc/vnstat.conf /usr/pbi/vnstat-i386/etc/vnstat.conf"); }
+ if (file_exists('/usr/pbi/vnstat-amd64')) { exec("ln -s /usr/local/etc/vnstat.conf /usr/pbi/vnstat-amd64/etc/vnstat.conf"); }
// 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");