Skip to content

Commit

Permalink
kamctl: check if kamctlrc is readable
Browse files Browse the repository at this point in the history
- related to GH #3594
  • Loading branch information
miconda committed Oct 6, 2023
1 parent e01d1cb commit a3fd3b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/kamctl/kamctl
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ if [ -n "$KAMCTLFULLPATH" ] ; then
fi

# check for rc file at standard locations
if [ -f /etc/kamailio/kamctlrc ]; then
if [ -f /etc/kamailio/kamctlrc -a -r /etc/kamailio/kamctlrc ]; then
. /etc/kamailio/kamctlrc
fi
if [ -f /usr/local/etc/kamailio/kamctlrc ]; then
if [ -f /usr/local/etc/kamailio/kamctlrc -a -r /usr/local/etc/kamailio/kamctlrc ]; then
. /usr/local/etc/kamailio/kamctlrc
fi
if [ -f ~/.kamctlrc ]; then
if [ -f ~/.kamctlrc -a -r ~/.kamctlrc ]; then
. ~/.kamctlrc
fi

Expand Down

0 comments on commit a3fd3b1

Please sign in to comment.