[asterisk-bugs] [JIRA] (ASTERISK-26619) Both AST_ARGS and ASTARGS used in /etc/init.d script uses

Telford Tendys (JIRA) noreply at issues.asterisk.org
Tue Nov 22 17:04:09 CST 2016


     [ https://issues.asterisk.org/jira/browse/ASTERISK-26619?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Telford Tendys updated ASTERISK-26619:
--------------------------------------

    Description: 
Two different variable names are used for the same purpose in the script /etc/init.d/asterisk

{quote}
        if [ $AST_USER ] ; then
                AST_ARGS="{color:red}$AST_ARGS{color} -U $AST_USER"
        fi
        if [ $AST_GROUP ] ; then
                AST_ARGS="{color:red}$AST_ARGS{color} -G $AST_GROUP"
        fi
        if [ $AST_CONFIG ]; then
                ASTARGS="{color:green}$ASTARGS{color} -C $AST_CONFIG"
        elif [ $ALTCONF ]; then
                ASTARGS="{color:green}$ASTARGS{color} -C $ALTCONF"
        fi
{quote}

Very likely this is a mistake. In testing it shows that changing the value of AST_USER inside /etc/sysconfig/asterisk has no effect on the running program because the arguments are lost in the script.

  was:
Two different variable names are used for the same purpose in the script /etc/init.d/asterisk

{quote}
        if [ $AST_USER ] ; then
                AST_ARGS="{color:red}$AST_ARGS{color} -U $AST_USER"
        fi
        if [ $AST_GROUP ] ; then
                AST_ARGS="{color:red}$AST_ARGS{color} -G $AST_GROUP"
        fi
        if [ $AST_CONFIG ]; then
                ASTARGS="$ASTARGS -C $AST_CONFIG"
        elif [ $ALTCONF ]; then
                ASTARGS="$ASTARGS -C $ALTCONF"
        fi
{quote}

Very likely this is a mistake. In testing it shows that changing the value of AST_USER inside /etc/sysconfig/asterisk has no effect on the running program because the arguments are lost in the script.


> Both AST_ARGS and ASTARGS used in /etc/init.d script uses
> ---------------------------------------------------------
>
>                 Key: ASTERISK-26619
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26619
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: General
>    Affects Versions: 1.8.32.3
>         Environment: OS: CentOS release 6.8
> Package: asterisk-1.8.32.3-2.el6.x86_64
> Build Host: buildhw-12.phx2.fedoraproject.org
> Source RPM: asterisk-1.8.32.3-2.el6.src.rpm
>            Reporter: Telford Tendys
>            Severity: Minor
>
> Two different variable names are used for the same purpose in the script /etc/init.d/asterisk
> {quote}
>         if [ $AST_USER ] ; then
>                 AST_ARGS="{color:red}$AST_ARGS{color} -U $AST_USER"
>         fi
>         if [ $AST_GROUP ] ; then
>                 AST_ARGS="{color:red}$AST_ARGS{color} -G $AST_GROUP"
>         fi
>         if [ $AST_CONFIG ]; then
>                 ASTARGS="{color:green}$ASTARGS{color} -C $AST_CONFIG"
>         elif [ $ALTCONF ]; then
>                 ASTARGS="{color:green}$ASTARGS{color} -C $ALTCONF"
>         fi
> {quote}
> Very likely this is a mistake. In testing it shows that changing the value of AST_USER inside /etc/sysconfig/asterisk has no effect on the running program because the arguments are lost in the script.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list