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

Joshua Colp asteriskteam at digium.com
Mon Mar 18 06:00:07 CDT 2019


Joshua Colp has submitted this change and it was merged. ( https://gerrit.asterisk.org/c/asterisk/+/11148 )

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(-)

Approvals:
  Kevin Harwell: Looks good to me, but someone else must approve
  Benjamin Keith Ford: Looks good to me, but someone else must approve
  Joshua Colp: Looks good to me, approved; Approved for Submit



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/+/11148
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: I7595e582a0ee2c1051ea35435e247e27906957ef
Gerrit-Change-Number: 11148
Gerrit-PatchSet: 1
Gerrit-Owner: Cirillo Ferreira <cirillor at lbv.org.br>
Gerrit-Reviewer: Benjamin Keith Ford <bford at digium.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20190318/e4b2b6ab/attachment.html>


More information about the asterisk-code-review mailing list