[Asterisk-code-review] Variable ALTCONF ignored when service is used in Debian (...asterisk[13])

Cirillo Ferreira asteriskteam at digium.com
Sat Mar 9 08:46:19 CST 2019


Cirillo Ferreira has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/11125


Change subject: Variable ALTCONF ignored when service is used in Debian
......................................................................

Variable ALTCONF ignored when service is used in Debian

When variable ALTCONF is defined, the command start prints the message
"Unable to open specified master config file '"/etc/asterisk/asteris..."
and use default configurations.

ASTERISK-28332

Change-Id: I7595e582a0ee2c1051ea35435e247e27906957ef
---
M contrib/init.d/rc.debian.asterisk
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/25/11125/1

diff --git a/contrib/init.d/rc.debian.asterisk b/contrib/init.d/rc.debian.asterisk
index 6c1474a..c58ab23 100755
--- a/contrib/init.d/rc.debian.asterisk
+++ b/contrib/init.d/rc.debian.asterisk
@@ -85,7 +85,7 @@
 		chgrp $AST_GROUP $ASTVARRUNDIR
 	fi
 	if [ $ALTCONF ]; then
-		ASTARGS="$ASTARGS -C \"$ALTCONF\""
+		ASTARGS="$ASTARGS -C $ALTCONF"
 	fi
 	if [ "x$COREDUMP" = "xyes" ]; then
 		ASTARGS="$ASTARGS -g"

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/11125
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Change-Id: I7595e582a0ee2c1051ea35435e247e27906957ef
Gerrit-Change-Number: 11125
Gerrit-PatchSet: 1
Gerrit-Owner: Cirillo Ferreira <cirillor at lbv.org.br>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20190309/4b42cdcd/attachment-0001.html>


More information about the asterisk-code-review mailing list