Author: bkruse
Date: Tue Mar 11 13:14:58 2008
New Revision: 2530
URL: http://svn.digium.com/view/asterisk-gui?view=rev&am
p;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/branch
es/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/ztc
fg_output.html"
FILENAME="/etc/asterisk/applyzap.conf"
-grep -v "[general]" $ | grep -v
";" > $
-cp -rf $ $.zapscan # save the gui
settings!
-cp -rf $ $.zapscan # save the user
settings
-zapscan
-ztcfg -vv > $
+grep -v ';' $ | sed 's/[general]//g' >
$
+
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.c
om--
asterisk-gui-commits mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-g
ui-commits
|