Skip to content

Commit

Permalink
kamdbctl: check if kamctlrc is readable
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Oct 6, 2023
1 parent 0518410 commit f16ec35
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/kamctl/kamdbctl
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,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 f16ec35

Please sign in to comment.