diff options
Diffstat (limited to 'www/asterisk-gui/files/patch-config-backup.html')
-rw-r--r-- | www/asterisk-gui/files/patch-config-backup.html | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/www/asterisk-gui/files/patch-config-backup.html b/www/asterisk-gui/files/patch-config-backup.html new file mode 100644 index 000000000000..b7847a3ea068 --- /dev/null +++ b/www/asterisk-gui/files/patch-config-backup.html @@ -0,0 +1,29 @@ +--- config/backup.html.orig Thu Apr 26 21:57:18 2007 ++++ config/backup.html Thu Apr 26 21:57:54 2007 +@@ -116,7 +116,7 @@ + + + function restore_bkp(filename){ +- //parent.astmanEngine.run_tool("rm /etc/asterisk/* -rf ", callback=function(){ restore_bkp_step2(filename);} ); ++ //parent.astmanEngine.run_tool("rm %%PREFIX%%/etc/asterisk/* -rf ", callback=function(){ restore_bkp_step2(filename);} ); + restore_bkp_step2(filename); + } + +@@ -131,7 +131,7 @@ + + function delete_bkp( filename ){ + if(!confirm("Delete selected Backup Configuration ?")){ return ; } +- parent.astmanEngine.run_tool("/bin/rm -f "+ asterisk_ConfigBkpPath + filename , callback=function(){ ++ parent.astmanEngine.run_tool("rm -f "+ asterisk_ConfigBkpPath + filename , callback=function(){ + gui_feedback('Delete Request Successfull !','default'); + window.location.href = window.location.href ; + }); +@@ -177,7 +177,7 @@ + //var seconds =addzero(today.getSeconds()); + var bkpfile = _nn.value +"__" + year + month + day +".tar"; + +- parent.astmanEngine.run_tool("/bin/tar -cf "+ asterisk_ConfigBkpPath + bkpfile + " " + asterisk_configfolder, callback=function(){ ++ parent.astmanEngine.run_tool("tar -cf "+ asterisk_ConfigBkpPath + bkpfile + " " + asterisk_configfolder, callback=function(){ + gui_feedback('Backup Successfull!','blue'); + window.location.href = window.location.href ; + } |