aboutsummaryrefslogtreecommitdiffstats
path: root/main/nginx/nginx.post-install
blob: 70c0812ff61b4b95e53b9da15bb7608138a349d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

# 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