Disable console colourization inside safe_asterisk checks.

(closes issue #19213)
Reported by: lefoyer
Patches: 
      issue19213_strip_color_in_safe_asterisk-svn.patch uploaded by wdoekes (license 717)
Tested by: wdoekes, lefoyer


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@317102 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Leif Madsen
2011-05-05 14:54:46 +00:00
parent a864430b0b
commit 73e8f5d57e

View File

@@ -28,7 +28,7 @@ PRIORITY=0
# Check if Asterisk is already running. If it is, then bug out, because
# starting safe_asterisk when Asterisk is running is very bad.
VERSION=`${ASTSBINDIR}/asterisk -rx 'core show version'`
VERSION=`${ASTSBINDIR}/asterisk -nrx 'core show version'`
if test "`echo $VERSION | cut -c 1-8`" = "Asterisk" ; then
echo "Asterisk is already running. $0 will exit now."
exit 1