aboutsummaryrefslogtreecommitdiffstats
path: root/packages/phpservice/phpservice.inc
diff options
context:
space:
mode:
authorMark Crane <mcrane@pfsense.org>2009-01-22 19:55:00 +0000
committerMark Crane <mcrane@pfsense.org>2009-01-22 19:55:00 +0000
commit11de846965f8112dc4c14689f272419358b456bd (patch)
treec3a86acc7c28b032a72ede2e502891b9bd516b7e /packages/phpservice/phpservice.inc
parent3e1caa8078443999129e65936f3a2062526ab1ef (diff)
downloadpfsense-packages-11de846965f8112dc4c14689f272419358b456bd.tar.gz
pfsense-packages-11de846965f8112dc4c14689f272419358b456bd.tar.bz2
pfsense-packages-11de846965f8112dc4c14689f272419358b456bd.zip
PHPService change paths for installation
Diffstat (limited to 'packages/phpservice/phpservice.inc')
-rw-r--r--packages/phpservice/phpservice.inc22
1 files changed, 11 insertions, 11 deletions
diff --git a/packages/phpservice/phpservice.inc b/packages/phpservice/phpservice.inc
index bed136b2..24ad4e61 100644
--- a/packages/phpservice/phpservice.inc
+++ b/packages/phpservice/phpservice.inc
@@ -153,12 +153,12 @@ function sync_package_phpservice()
function sync_package()
{
- global $config;
- sync_package_phpservice();
+ global $config;
+ sync_package_phpservice();
- //if (!is_dir('/usr/local/www/phpservice/')) {
- //exec("mkdir /usr/local/www/phpservice/");
- //}
+ if (!is_dir('/usr/local/www/packages/phpservice/')) {
+ exec("mkdir /usr/local/www/packages/phpservice/");
+ }
}
@@ -170,17 +170,17 @@ function php_install_command()
conf_mount_rw();
config_lock();
- //if (!is_dir('/usr/local/www/phpservice/')) {
- //exec("mkdir /usr/local/www/phpservice/");
- //}
+ if (!is_dir('/usr/local/www/packages/phpservice/')) {
+ exec("mkdir /usr/local/www/packages/phpservice/");
+ }
//rename PHP files from .tmp to .php
- exec("cp /tmp/phpservice_php.tmp /usr/local/www/phpservice_php.php");
+ exec("cp /tmp/phpservice_php.tmp /usr/local/www/packages/phpservice/phpservice_php.php");
unlink_if_exists("/tmp/phpservice_php.tmp");
- exec("cp /tmp/phpservice.tmp /usr/local/pkg/phpservice.php");
- unlink_if_exists("/tmp/phpservice.tmp");
+ exec("cp /tmp/phpservice_php_edit.tmp /usr/local/www/packages/phpservice/phpservice_php_edit.php");
+ unlink_if_exists("/tmp/phpservice_php_edit.tmp");
//write_config();