Skip to content

Commit

Permalink
Fix when run as root
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Valsecchi committed Aug 3, 2018
1 parent 23cff77 commit 61565cb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/runtime/usr/local/bin/start-server
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ rm -f $APACHE_RUN_DIR/apache2.pid
if [ ! -p /var/log/mapserver.log ]
then
mknod /var/log/mapserver.log p
if [[ "${UID}" == 0 ]]
then
chown www-data:root /var/log/mapserver.log
fi
fi

(while true
Expand Down

0 comments on commit 61565cb

Please sign in to comment.