diff options
author | D. V. Serg <dvserg@pfsense.org> | 2008-12-12 06:00:16 +0000 |
---|---|---|
committer | D. V. Serg <dvserg@pfsense.org> | 2008-12-12 06:00:16 +0000 |
commit | 1fb0997c705660b0232b2df71b11a1b0ef32992d (patch) | |
tree | 52f75c53c51c1078d865eecc93973e5ae2864e57 | |
parent | ef3a5db4cc3eb776b9ed62a627ef7305105363cf (diff) | |
download | pfsense-packages-1fb0997c705660b0232b2df71b11a1b0ef32992d.tar.gz pfsense-packages-1fb0997c705660b0232b2df71b11a1b0ef32992d.tar.bz2 pfsense-packages-1fb0997c705660b0232b2df71b11a1b0ef32992d.zip |
perl LN fix
-rw-r--r-- | packages/lightsquid/lightsquid.inc | 15 | ||||
-rw-r--r-- | packages/lightsquid/lightsquid.xml | 2 |
2 files changed, 13 insertions, 4 deletions
diff --git a/packages/lightsquid/lightsquid.inc b/packages/lightsquid/lightsquid.inc index 6ae3de79..de06bbf0 100644 --- a/packages/lightsquid/lightsquid.inc +++ b/packages/lightsquid/lightsquid.inc @@ -103,7 +103,12 @@ function lightsquid_install() { if (file_exists($lstpl_file)) { mwexec("tar zxvf $lstpl_file -C " . LS_TEMPLATEPATH); update_log("lightsquid_install: Install templates from $lstpl_file"); - } + } + + # check perl + if (!file_exists("/usr/bin/perl")) + mwexec("ln -s /usr/local/bin/perl /usr/bin/perl"); + update_log("lightsquid_install: stopped"); } @@ -116,8 +121,8 @@ function lightsquid_deinstall() { // control shoot to head :) # mwexec(CMD_PKGDELETE); // remove '/usr/local/www/lightsquid' dir - any time can't be removed by templates - if (file_exists(LS_WWWPATH)) - mwexec("rm -rf " . LS_WWWPATH); +# if (file_exists(LS_WWWPATH)) +# mwexec("rm -rf " . LS_WWWPATH); update_log("lightsquid_deinstall: stopped"); } @@ -127,6 +132,10 @@ function lightsquid_resync() { $tm = ''; $tm_squid = ''; + # check perl + if (!file_exists("/usr/bin/perl")) + mwexec("ln -s /usr/local/bin/perl /usr/bin/perl"); + // debug $light_test = array(); if (($_POST['Submit'] === 'Save') or !isset($_POST['Submit'])) { diff --git a/packages/lightsquid/lightsquid.xml b/packages/lightsquid/lightsquid.xml index 38704a4b..5f4293bf 100644 --- a/packages/lightsquid/lightsquid.xml +++ b/packages/lightsquid/lightsquid.xml @@ -248,7 +248,7 @@ lightsquid_resync(); </custom_php_install_command> <custom_php_deinstall_command> - mwexec("pkg_delete lightsquid-1.7.1"); +# mwexec("pkg_delete lightsquid-1.7.1"); lightsquid_deinstall(); </custom_php_deinstall_command> </packagegui>
\ No newline at end of file |