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

9 lines
232 B
Bash

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