aboutsummaryrefslogtreecommitdiffstats
path: root/main/nginx/nginx.pre-upgrade
blob: 67d540f185451128a64841b7ea024e55673a2fa9 (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/sh

# symlink to directory confuses apk. remove it before the upgrade
# https://gitlab.alpinelinux.org/alpine/aports/-/issues/11204

if [ "$(readlink /var/lib/nginx/tmp)" = "/var/tmp/nginx" ]; then
	rm /var/lib/nginx/tmp
fi