pari: branch appliance r417 - /branches/appliance/config/gui_sysinfo

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Mon Mar 12 13:48:17 MST 2007


Author: pari
Date: Mon Mar 12 15:48:17 2007
New Revision: 417

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=417
Log:
Get list of backup files from CF

Modified:
    branches/appliance/config/gui_sysinfo

Modified: branches/appliance/config/gui_sysinfo
URL: http://svn.digium.com/view/asterisk-gui/branches/appliance/config/gui_sysinfo?view=diff&rev=417&r1=416&r2=417
==============================================================================
--- branches/appliance/config/gui_sysinfo (original)
+++ branches/appliance/config/gui_sysinfo Mon Mar 12 15:48:17 2007
@@ -29,4 +29,14 @@
 /bin/echo "<div id=cf_status>1</div>" >> /var/lib/asterisk/static-http/config/bkps/sysinfo.html
 else
 /bin/echo "<div id=cf_status>0</div>" >> /var/lib/asterisk/static-http/config/bkps/sysinfo.html
-fi
+fi
+
+/bin/echo "<div id=bkp_files>" >> /var/lib/asterisk/static-http/config/bkps/sysinfo.html
+BKPFILES=`ls /var/lib/asterisk/sounds/backups/`
+for i in $BKPFILES
+do
+/bin/echo "$i<BR>" >> /var/lib/asterisk/static-http/config/bkps/sysinfo.html
+done
+/bin/echo "</div>" >> /var/lib/asterisk/static-http/config/bkps/sysinfo.html
+
+



More information about the asterisk-gui-commits mailing list