From 73665ee51381051f7174a0ea967f30a0bf42f3ae Mon Sep 17 00:00:00 2001 From: jim-p Date: Wed, 3 Nov 2010 11:44:30 -0400 Subject: Keep downloaded shellcmd files around so the package system doesn't complain about missing dependencies on each boot. --- config/shellcmd/shellcmd.inc | 7 ++----- config/shellcmd/shellcmd.xml | 4 ++-- 2 files changed, 4 insertions(+), 7 deletions(-) (limited to 'config/shellcmd') diff --git a/config/shellcmd/shellcmd.inc b/config/shellcmd/shellcmd.inc index 76ceeb31..cd46ada5 100644 --- a/config/shellcmd/shellcmd.inc +++ b/config/shellcmd/shellcmd.inc @@ -79,11 +79,8 @@ function php_install_command() //rename PHP files from .tmp to .php - exec("cp /tmp/shellcmd.tmp /usr/local/www/packages/shellcmd/shellcmd.php"); - unlink_if_exists("/tmp/shellcmd.tmp"); - - exec("cp /tmp/shellcmd_edit.tmp /usr/local/www/packages/shellcmd/shellcmd_edit.php"); - unlink_if_exists("/tmp/shellcmd_edit.tmp"); + exec("cp /usr/local/pkg/shellcmd.tmp /usr/local/www/packages/shellcmd/shellcmd.php"); + exec("cp /usr/local/pkg/shellcmd_edit.tmp /usr/local/www/packages/shellcmd/shellcmd_edit.php"); //write_config(); diff --git a/config/shellcmd/shellcmd.xml b/config/shellcmd/shellcmd.xml index 5860b68c..a4b67c7a 100644 --- a/config/shellcmd/shellcmd.xml +++ b/config/shellcmd/shellcmd.xml @@ -75,12 +75,12 @@ http://www.pfsense.com/packages/config/shellcmd/shellcmd.inc - /tmp/ + /usr/local/pkg/ 0755 http://www.pfsense.com/packages/config/shellcmd/shellcmd.tmp - /tmp/ + /usr/local/pkg/ 0755 http://www.pfsense.com/packages/config/shellcmd/shellcmd_edit.tmp -- cgit v1.2.3