Skip to content

Commit

Permalink
Fixes issue #291 and removes the default Nginx server
Browse files Browse the repository at this point in the history
  • Loading branch information
mackhendricks committed Nov 17, 2020
1 parent e17b362 commit 348d856
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dsiprouter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,8 @@ function initialChecks {

# make sure dirs exist (ones that may not yet exist)
mkdir -p ${DSIP_SYSTEM_CONFIG_DIR} ${SRC_DIR} ${BACKUPS_DIR} ${DSIP_RUN_DIR} ${DSIP_CERTS_DIR}
# make sure the permissions on the $DSIP_RUN_DIR is correct, which is needed after a reboot
chown dsiprouter:dsiprouter ${DSIP_RUN_DIR}

if [[ "$DISTRO" == "debian" ]] || [[ "$DISTRO" == "ubuntu" ]]; then
# comment out cdrom in sources as it can halt install
Expand Down
3 changes: 3 additions & 0 deletions dsiprouter/debian/10.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ function install {

# get the user that nginx is running under.
nginx_username=$(ps -o uname= -p `pidof -s nginx`)
# remove the default site, which is sitting on port 80
rm /etc/nginx/sites-enabled/default

# make sure the nginx user has access to dsiprouter directories
usermod -a -G dsiprouter $nginx_username
# make dsiprouter user has access to kamailio files
Expand Down
3 changes: 3 additions & 0 deletions dsiprouter/debian/9.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ function install {

# get the user that nginx is running under.
nginx_username=$(ps -o uname= -p `pidof -s nginx`)
# remove the default site, which is sitting on port 80
rm /etc/nginx/sites-enabled/default

# make sure the nginx user has access to dsiprouter directories
usermod -a -G dsiprouter $nginx_username
# make dsiprouter user has access to kamailio files
Expand Down

0 comments on commit 348d856

Please sign in to comment.