bkruse: branch asterisknow r2530 - /branches/asterisknow/scripts/editzap.sh

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Tue Mar 11 13:15:02 CDT 2008


Author: bkruse
Date: Tue Mar 11 13:14:58 2008
New Revision: 2530

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=2530
Log:
Change editzap:

a) Use /bin/sh instead of /bin/bash which is
not linked on the appliance.

b) Grep on the appliance does not work well with
the escaped \[general\] or [general] matching, using
sed instead.

Modified:
    branches/asterisknow/scripts/editzap.sh

Modified: branches/asterisknow/scripts/editzap.sh
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/scripts/editzap.sh?view=diff&rev=2530&r1=2529&r2=2530
==============================================================================
--- branches/asterisknow/scripts/editzap.sh (original)
+++ branches/asterisknow/scripts/editzap.sh Tue Mar 11 13:14:58 2008
@@ -7,11 +7,6 @@
 # Quick script for applying zaptel settings from the GUI.
 
 ZAPCONF="/etc/zaptel.conf"
-ZAPATACONF="/etc/asterisk/zapata.conf"
-ZTCFG_OUTPUT="/var/lib/asterisk/static-http/config/ztcfg_output.html"
 FILENAME="/etc/asterisk/applyzap.conf"
-grep -v "\[general\]" ${FILENAME} | grep -v "\;" > ${ZAPCONF} 
-cp -rf ${ZAPCONF} ${ZAPCONF}.zapscan # save the gui settings!
-cp -rf ${ZAPATACONF} ${ZAPATACONF}.zapscan # save the user settings
-zapscan
-ztcfg -vv > ${ZTCFG_OUTPUT}
+grep -v '\;' ${FILENAME} | sed 's/\[general\]//g' > ${ZAPCONF}
+




More information about the asterisk-gui-commits mailing list