diff --git a/container/root/run.d/99-nginx.sh b/container/root/run.d/99-nginx.sh index df2af7d..711f83e 100644 --- a/container/root/run.d/99-nginx.sh +++ b/container/root/run.d/99-nginx.sh @@ -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