Skip to content

Commit

Permalink
Merge pull request #27 from bryanlatten/feature-symlink-protection
Browse files Browse the repository at this point in the history
Run.d/Nginx: guard against multiple runs, same image
  • Loading branch information
Bryan Latten committed Apr 14, 2016
2 parents 668578d + e84a07b commit eb15650
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion container/root/run.d/99-nginx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,10 @@ then
setcap cap_net_bind_service=+ep /usr/sbin/nginx

# Enable nginx as a supervised service
ln -s /etc/services-available/nginx /etc/services.d/nginx
if [ -d /etc/services.d/nginx ]
then
echo '[run] web server already enabled'
else
ln -s /etc/services-available/nginx /etc/services.d/nginx
fi
fi

0 comments on commit eb15650

Please sign in to comment.