ptrcports/nginx-current/nginx-current.pre-upgrade

10 lines
232 B
Text
Raw Permalink Normal View History

2022-04-27 22:21:24 +00:00
#!/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