1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 03:09:51 +03:00
aports/main/nginx/nginx.post-install
Jakub Jirutka ce4f9d8e9f main/nginx: stop symlinking conf.d to http.d
This is the second step in transition started with 383ba9c0a2.
2021-05-28 20:37:39 +02:00

11 lines
375 B
Bash

#!/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
exit 0