aboutsummaryrefslogtreecommitdiffstats
path: root/config/freeswitch_dev
diff options
context:
space:
mode:
authormcrane <mctch@yahoo.com>2009-08-11 02:46:27 -0600
committermcrane <mctch@yahoo.com>2009-08-11 02:46:27 -0600
commitb580a4cfdd41fd63a559a97526300a4d6aaa47d9 (patch)
tree2570d3505af8bfe0a328316c6d844b26f2c668b8 /config/freeswitch_dev
parentcd5bee24927d619859854edce45596303cc1a0f1 (diff)
downloadpfsense-packages-b580a4cfdd41fd63a559a97526300a4d6aaa47d9.tar.gz
pfsense-packages-b580a4cfdd41fd63a559a97526300a4d6aaa47d9.tar.bz2
pfsense-packages-b580a4cfdd41fd63a559a97526300a4d6aaa47d9.zip
FreeSWITCH dev modify the restore backup code.
Diffstat (limited to 'config/freeswitch_dev')
-rw-r--r--config/freeswitch_dev/v_config.inc34
1 files changed, 17 insertions, 17 deletions
diff --git a/config/freeswitch_dev/v_config.inc b/config/freeswitch_dev/v_config.inc
index 48660ea3..3f0046fd 100644
--- a/config/freeswitch_dev/v_config.inc
+++ b/config/freeswitch_dev/v_config.inc
@@ -3861,8 +3861,8 @@ function v_install_phase_1()
//extract a specific directory
$filename = $v_name.'.bak.tgz';
if (file_exists($v_backup_dir.$filename)) {
-// $static_output = 'Restore the Backup';
-// update_output_window($static_output);
+ $static_output = 'Restore the Backup';
+ update_output_window($static_output);
//echo "The file $filename exists";
@@ -3871,23 +3871,23 @@ function v_install_phase_1()
//Recommended
chdir($v_parent_dir);
- system('tar xvpfz '.$v_backup_dir.'/'.$filename.' '.$v_name.'/db/');
- system('tar xvpfz '.$v_backup_dir.'/'.$filename.' '.$v_name.'/log/');
- system('tar xvpfz '.$v_backup_dir.'/'.$filename.' '.$v_name.'/recordings/');
- system('tar xvpfz '.$v_backup_dir.'/'.$filename.' '.$v_name.'/scripts/');
- system('tar xvpfz '.$v_backup_dir.'/'.$filename.' '.$v_name.'/storage/');
- system('tar xvpfz '.$v_backup_dir.'/'.$filename.' '.$v_name.'/sounds/custom/8000/');
- system('tar xvpfz '.$v_backup_dir.'/'.$filename.' '.$v_name.'/sounds/music/8000/');
- system('tar xvpfz '.$v_backup_dir.'/'.$filename.' '.$v_name.'/conf/ssl/');
- system('tar xvpfz '.$v_backup_dir.'/'.$filename.' '.$v_name.'/conf/sip_profiles/');
- system('tar xvpfz '.$v_backup_dir.'/'.$filename.' '.$v_name.'/conf/vars.xml');
- system('tar xvpfz '.$v_backup_dir.'/'.$filename.' '.$v_name.'/conf/dialplan/default.xml');
- system('tar xvpfz '.$v_backup_dir.'/'.$filename.' '.$v_name.'/conf/dialplan/public.xml');
+ system('cd /usr/local; tar xvpfz '.$v_backup_dir.'/'.$filename.' '.$v_name.'/db/');
+ system('cd /usr/local; tar xvpfz '.$v_backup_dir.'/'.$filename.' '.$v_name.'/log/');
+ system('cd /usr/local; tar xvpfz '.$v_backup_dir.'/'.$filename.' '.$v_name.'/recordings/');
+ system('cd /usr/local; tar xvpfz '.$v_backup_dir.'/'.$filename.' '.$v_name.'/scripts/');
+ system('cd /usr/local; tar xvpfz '.$v_backup_dir.'/'.$filename.' '.$v_name.'/storage/');
+ system('cd /usr/local; tar xvpfz '.$v_backup_dir.'/'.$filename.' '.$v_name.'/sounds/custom/8000/');
+ system('cd /usr/local; tar xvpfz '.$v_backup_dir.'/'.$filename.' '.$v_name.'/sounds/music/8000/');
+ system('cd /usr/local; tar xvpfz '.$v_backup_dir.'/'.$filename.' '.$v_name.'/conf/ssl');
+ system('cd /usr/local; tar xvpfz '.$v_backup_dir.'/'.$filename.' '.$v_name.'/conf/sip_profiles/');
+ system('cd /usr/local; tar xvpfz '.$v_backup_dir.'/'.$filename.' '.$v_name.'/conf/vars.xml');
+ system('cd /usr/local; tar xvpfz '.$v_backup_dir.'/'.$filename.' '.$v_name.'/conf/dialplan/default.xml');
+ system('cd /usr/local; tar xvpfz '.$v_backup_dir.'/'.$filename.' '.$v_name.'/conf/dialplan/public.xml');
//Optional
- //system('tar xvpfz '.$v_backup_dir.'/'.$filename.' '.$v_name.'/conf/');
- //system('tar xvpfz '.$v_backup_dir.'/'.$filename.' '.$v_name.'/grammar/');
- //system('tar xvpfz '.$v_backup_dir.'/'.$filename.' '.$v_name.'/htdocs/');
+ //system('cd /usr/local; tar xvpfz '.$v_backup_dir.'/'.$filename.' '.$v_name.'/conf/');
+ //system('cd /usr/local; tar xvpfz '.$v_backup_dir.'/'.$filename.' '.$v_name.'/grammar/');
+ //system('cd /usr/local; tar xvpfz '.$v_backup_dir.'/'.$filename.' '.$v_name.'/htdocs/');
unset($filename);