[Asterisk-cvs] asterisk/contrib/scripts safe_asterisk,1.8,1.9

markster markster
Sat Aug 13 22:16:12 CDT 2005


Update of /usr/cvsroot/asterisk/contrib/scripts
In directory mongoose.digium.com:/tmp/cvs-serv11358/contrib/scripts

Modified Files:
	safe_asterisk 
Log Message:
Build safe_asterisk script substituting the proper path in (bug #4952, patch not used)


Index: safe_asterisk
===================================================================
RCS file: /usr/cvsroot/asterisk/contrib/scripts/safe_asterisk,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- safe_asterisk	1 Dec 2004 05:10:32 -0000	1.8
+++ safe_asterisk	14 Aug 2005 02:19:16 -0000	1.9
@@ -5,6 +5,7 @@
 #NOTIFY=ben at alkaloid.net	# Who to notify about crashes
 MACHINE=`hostname`      # To specify which machine has crashed when getting the mail
 DUMPDROP=/tmp
+ASTSBINDIR=__ASTERISK_SBIN_DIR__
 #
 # Don't fork when running "safely"
 #
@@ -44,10 +45,10 @@
 		if [ "$TTY" != "" ]; then
 			cd /tmp
 			stty sane < /dev/${TTY}
-			asterisk ${CLIARGS} ${ASTARGS} >& /dev/${TTY} < /dev/${TTY}
+			${ASTSBINDIR}/asterisk ${CLIARGS} ${ASTARGS} >& /dev/${TTY} < /dev/${TTY}
 		else
 			cd /tmp
-			asterisk ${CLIARGS} ${ASTARGS}
+			${ASTSBINDIR}/asterisk ${CLIARGS} ${ASTARGS}
 		fi
 		EXITSTATUS=$?
 		echo "Asterisk ended with exit status $EXITSTATUS"




More information about the svn-commits mailing list