aboutsummaryrefslogtreecommitdiffstats
path: root/main/nginx/nginx.post-install
diff options
context:
space:
mode:
Diffstat (limited to 'main/nginx/nginx.post-install')
-rw-r--r--main/nginx/nginx.post-install9
1 files changed, 3 insertions, 6 deletions
diff --git a/main/nginx/nginx.post-install b/main/nginx/nginx.post-install
index 70c0812ff6..cf4ddbcfe3 100644
--- a/main/nginx/nginx.post-install
+++ b/main/nginx/nginx.post-install
@@ -1,14 +1,11 @@
#!/bin/sh
+# This is needed for containers that don't start nginx using init script.
+install -d -m 755 -o nginx -g nginx /run/nginx || true
+
# Install config with the default http server to the new location (since 1.18.0-r13).
if ! [ -e /etc/nginx/http.d/default.conf ]; then
install -m644 /usr/share/nginx/http-default_server.conf /etc/nginx/http.d/default.conf
fi
-# TODO: Remove before Alpine 3.14.
-if ! [ -e /etc/nginx/conf.d ]; then
- # Symlink conf.d to http.d for backward compatibility.
- ln -s http.d /etc/nginx/conf.d
-fi
-
exit 0