Skip to content

Commit

Permalink
Fixed Debian 9 dSIPRouter install
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Nov 15, 2020
1 parent b04ed00 commit e17b362
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 0 additions & 3 deletions dsiprouter/debian/10.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ function install {
rm -f /etc/passwd.lock /etc/shadow.lock /etc/group.lock /etc/gshadow.lock
useradd --system --user-group --shell /bin/false --comment "dSIPRouter SIP Provider Platform" dsiprouter

# setup /var/run/dsiprouter directory
mkdir -p /var/run/dsiprouter
chown dsiprouter:dsiprouter /var/run/dsiprouter
# get the user that nginx is running under.
nginx_username=$(ps -o uname= -p `pidof -s nginx`)
# make sure the nginx user has access to dsiprouter directories
Expand Down
10 changes: 7 additions & 3 deletions dsiprouter/debian/9.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,21 @@ function install {
rm -f /etc/passwd.lock /etc/shadow.lock /etc/group.lock /etc/gshadow.lock
useradd --system --user-group --shell /bin/false --comment "dSIPRouter SIP Provider Platform" dsiprouter

# get the user that nginx is running under.
nginx_username=$(ps -o uname= -p `pidof -s nginx`)
# make sure the nginx user has access to dsiprouter directories
usermod -a -G dsiprouter $nginx_username
# make dsiprouter user has access to kamailio files
usermod -a -G kamailio dsiprouter

# setup /var/run/dsiprouter directory
mkdir -p /var/run/dsiprouter
chown dsiprouter:dsiprouter /var/run/dsiprouter
usermod -a -G dsiprouter nginx
usermod -a -G kamailio dsiprouter

# setup /var/run/dsiprouter directory
mkdir -p /var/run/dsiprouter
chown dsiprouter:dsiprouter /var/run/dsiprouter


# Reset python cmd in case it was just installed
setPythonCmd

Expand Down

0 comments on commit e17b362

Please sign in to comment.