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

ron at morell.us ron at morell.us
Sun Mar 6 19:18:03 EST 2016


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




More information about the arm-allstar mailing list