This repository has been archived on 2023-01-08. You can view files and clone it, but cannot push or open issues or pull requests.
ptrcports/nginx-current/nginx-current.pre-upgrade

10 lines
232 B
Text
Raw 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