[Pkg-voip-commits] r5329 - in /asterisk-gui/trunk/debian: asterisk-gui.links changelog patches/log_path patches/series

tzafrir-guest at alioth.debian.org tzafrir-guest at alioth.debian.org
Wed Mar 19 20:12:20 UTC 2008


Author: tzafrir-guest
Date: Wed Mar 19 20:12:20 2008
New Revision: 5329

URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=5329
Log:
Patch log_path: Same fix to log viewer.

Added:
    asterisk-gui/trunk/debian/patches/log_path
Modified:
    asterisk-gui/trunk/debian/asterisk-gui.links
    asterisk-gui/trunk/debian/changelog
    asterisk-gui/trunk/debian/patches/series

Modified: asterisk-gui/trunk/debian/asterisk-gui.links
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk-gui/trunk/debian/asterisk-gui.links?rev=5329&op=diff
==============================================================================
--- asterisk-gui/trunk/debian/asterisk-gui.links (original)
+++ asterisk-gui/trunk/debian/asterisk-gui.links Wed Mar 19 20:12:20 2008
@@ -1,1 +1,2 @@
 /var/spool/asterisk/tmp/sysinfo_output.html /usr/share/asterisk/static-http/config/sysinfo_output.html
+/var/spool/asterisk/tmp/today_log.html /usr/share/asterisk/static-http/config/today_log.html

Modified: asterisk-gui/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk-gui/trunk/debian/changelog?rev=5329&op=diff
==============================================================================
--- asterisk-gui/trunk/debian/changelog (original)
+++ asterisk-gui/trunk/debian/changelog Wed Mar 19 20:12:20 2008
@@ -13,6 +13,7 @@
   * Patch sysinfo_path: write commands output to a file in the datadir
   * But make that file a symlink to the asterisk tmp dir
   * New standards version - 3.7.3 (no changes needed).
+  * Patch log_path: Same fix to log viewer.
 
  -- Tzafrir Cohen <tzafrir.cohen at xorcom.com>  Wed, 19 Mar 2008 20:57:37 +0200
 

Added: asterisk-gui/trunk/debian/patches/log_path
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk-gui/trunk/debian/patches/log_path?rev=5329&op=file
==============================================================================
--- asterisk-gui/trunk/debian/patches/log_path (added)
+++ asterisk-gui/trunk/debian/patches/log_path Wed Mar 19 20:12:20 2008
@@ -1,0 +1,23 @@
+today_log.html is a symlink to a file in /var/spool/asterisk/tmp
+that holds temporary outputs of various commands run by the
+asterisk-gui.
+
+But first we need to redirect the output of those scripts to that file.
+
+--- asterisk-gui-0.0.svn2546.orig/config/syslog.html
++++ asterisk-gui-0.0.svn2546/config/syslog.html
+@@ -30,12 +30,12 @@ function thisday_log(){
+ 	var _ld = _$('log_day').value; 
+ 	if(  _ld < 10 ){ var space = "  "; }else{ var space = " ";  }
+ 	var tmp_command = "/bin/grep /var/log/asterisk/messages -e '" + _$('log_month').value + space + _ld 
+-						+ " ' > /var/lib/asterisk/static-http/config/today_log.html" ;
++						+ " ' > /usr/share/asterisk/static-http/config/today_log.html" ;
+ 	parent.astmanEngine.run_tool( tmp_command , onSuccess = function() { _$('status_message').style.display='none'; load_todayslog(); } );
+ }
+ 
+ function touch_todayslog(){
+-	parent.astmanEngine.run_tool( 'touch /var/lib/asterisk/static-http/config/today_log.html',onSuccess = function(){ thisday_log();});
++	parent.astmanEngine.run_tool( 'touch /usr/share/asterisk/static-http/config/today_log.html',onSuccess = function(){ thisday_log();});
+ }
+ 
+ 

Modified: asterisk-gui/trunk/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk-gui/trunk/debian/patches/series?rev=5329&op=diff
==============================================================================
--- asterisk-gui/trunk/debian/patches/series (original)
+++ asterisk-gui/trunk/debian/patches/series Wed Mar 19 20:12:20 2008
@@ -2,3 +2,4 @@
 trademark_text
 change_colors
 sysinfo_path
+log_path




More information about the Pkg-voip-commits mailing list