[arm-allstar] /var/log/messages WARNINGS

Doug Crompton doug at crompton.com
Sun Mar 6 22:20:45 EST 2016


 Are you talking about the hamvoip.org distribution? We do NO do any portal configuration. pbx_config.c is not altered by us and does not appear to contain the code you mentioned? 
73 Doug
WA3DSP
http://www.crompton.com/hamradio


> To: arm-allstar at hamvoip.org
> Date: Sun, 6 Mar 2016 17:18:03 -0700
> Subject: [arm-allstar] /var/log/messages WARNINGS
> From: arm-allstar at hamvoip.org
> CC: ron at morell.us
> 
> Looking at the messages log today and noticed several things but two
> caught my eye as interesting.
> 
> [Mar  3 20:04:37] WARNING[240] pbx_config.c: No closing parenthesis
> found? 'System(rm -rf /tmp/allstar-config\; mkdir -p
> /tmp/allstar-config\;curl -sk -m 20 --retry 1
> https://config.allstarlink.org/config/start.sh >
> /tmp/allstar-config/start.sh'
>                           
> [Mar  3 20:04:37] WARNING[240] pbx_config.c: No closing parenthesis
> found? 'System(rm -rf /tmp/allstar-config\; mkdir -p
> /tmp/allstar-config\;curl -sk -m 20 --retry 1
> https://config.allstarlink.org/config/start.sh >
> /tmp/allstar-config/start.'
> 
> Easy enough to see that there isn't a closing parenthesis, but not as
> easy to find out why. I downloaded the file start.sh
> 
> #! /bin/bash
> 
> LOGFILE=/var/log/allstar-config.log
> TMPDIR=/tmp/allstar-config
> 
> mkdir -p $TMPDIR > /dev/null 2>&1
> rm -f $TMPDIR/auto-config.sh > /dev/null 2>&1
> 
> curl -sk -m 15 --retry 1
> https://config.allstarlink.org/config/auto-config.sh >
> $TMPDIR/auto-config.sh
> if [ $? -ne 0 ]
> then
> 	touch $LOGFILE
> 	echo `date`" config: unable to download portal config script" >>
> $LOGFILE
> 	rm -rf $TMPDIR > /dev/null 2>&1
> 	exit
> fi
> 
> bash $TMPDIR/auto-config.sh $1
> if [ $? -ne 0 ]
> then
> 	touch $LOGFILE
> 	echo `date`" config: unable to download and implement portal config" >>
> $LOGFILE
> 	rm -rf $TMPDIR > /dev/null 2>&1
> 	exit
> fi
> 
> touch $LOGFILE
> echo `date`" config: portal config downloaded and implemented and
> Asterisk restarted" >> $LOGFILE
> rm -rf $TMPDIR > /dev/null 2>&1
> exit
> 
> So what???  I just would like to know what this is for and if it should
> be a process in use. It looks like it could be used as an agent for
> change, better or worse.
> Ron Morell
> KA7U
> 
> 
> _______________________________________________
> 
> arm-allstar mailing list
> arm-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> 
> Visit the BBB and RPi2 web page - http://hamvoip.org
> 
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hamvoip.org/pipermail/arm-allstar/attachments/20160306/936cbd58/attachment.html>


More information about the arm-allstar mailing list