From 18a80c1fee1439987f436d255600c403201e1016 Mon Sep 17 00:00:00 2001 From: mcrane Date: Mon, 3 Aug 2009 22:31:04 -0600 Subject: FreeSWITCH dev fix syntax error add conf_mount_rw and config_lock back to install and deinstall --- config/freeswitch_dev/freeswitch.xml | 2 +- config/freeswitch_dev/v_config.inc | 20 ++++++++++++++++---- 2 files changed, 17 insertions(+), 5 deletions(-) (limited to 'config/freeswitch_dev') diff --git a/config/freeswitch_dev/freeswitch.xml b/config/freeswitch_dev/freeswitch.xml index 407b289e..9fe0e780 100644 --- a/config/freeswitch_dev/freeswitch.xml +++ b/config/freeswitch_dev/freeswitch.xml @@ -44,7 +44,7 @@ Describe your package requirements here Currently there are no FAQ items provided. Settings - 0.9.5.9 + 0.9.6 Settings /usr/local/pkg/v_config.inc diff --git a/config/freeswitch_dev/v_config.inc b/config/freeswitch_dev/v_config.inc index a7c77944..ef436f91 100644 --- a/config/freeswitch_dev/v_config.inc +++ b/config/freeswitch_dev/v_config.inc @@ -2968,15 +2968,18 @@ function pkg_add($pkg_download_path, $pkg_name) chdir('/tmp/'); exec("fetch ".$pkg_download_path.$pkg_name); exec("pkg_add -F ".$pkg_name); - exec("rm $pkg_name); + exec("rm ".$pkg_name); } function v_php_install_command() { - global $config; - //exec("/etc/./rc.conf_mount_rw"); - $v_package_version = "0.9.5.9"; + conf_mount_rw(); + config_lock(); + + global $config; + + $v_package_version = "0.9.6"; $v_build_version = "1.0.4 pre 10"; $v_build_revision = "14306"; @@ -3773,6 +3776,9 @@ function v_php_install_command() $config['installedpackages']['freeswitchsettings']['config'][0]['v_version'] = $v_build_version." revision ".$v_build_revision."."; $config['installedpackages']['freeswitchsettings']['config'][0]['v_package_version'] = $v_package_version; + + conf_mount_ro(); + config_unlock(); } @@ -3780,6 +3786,9 @@ function v_php_install_command() function v_deinstall_command() { + conf_mount_rw(); + config_lock(); + exec("killall -9 freeswitch"); exec("pkg_delete freeswitch-1.0.4"); @@ -3821,6 +3830,9 @@ function v_deinstall_command() unlink_if_exists("/tmp/freeswitch.tar.gz"); unlink_if_exists("/tmp/pkg_mgr_FreeSWITCH.log"); + conf_mount_ro(); + config_unlock(); + } ?> -- cgit v1.2.3