diff options
Diffstat (limited to 'contrib/scripts/safe_asterisk')
-rw-r--r-- | contrib/scripts/safe_asterisk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/scripts/safe_asterisk b/contrib/scripts/safe_asterisk index e73933ad4..c8841f3ed 100644 --- a/contrib/scripts/safe_asterisk +++ b/contrib/scripts/safe_asterisk @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # vim:textwidth=80:tabstop=4:shiftwidth=4:smartindent:autoindent CLIARGS="$*" # Grab any args passed to safe_asterisk @@ -41,7 +41,7 @@ function message() { # 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'` -if [ "${VERSION:0:8}" = "Asterisk" ]; then # otherwise "Unable t" +if [ "`echo $VERSION | cut -c 1-8`" = "Asterisk" ]; then message "Asterisk is already running. $0 will exit now." exit 1 fi |