aboutsummaryrefslogtreecommitdiffstats
path: root/main/nginx/nginx.pre-upgrade
diff options
context:
space:
mode:
Diffstat (limited to 'main/nginx/nginx.pre-upgrade')
-rw-r--r--main/nginx/nginx.pre-upgrade9
1 files changed, 9 insertions, 0 deletions
diff --git a/main/nginx/nginx.pre-upgrade b/main/nginx/nginx.pre-upgrade
new file mode 100644
index 0000000000..67d540f185
--- /dev/null
+++ b/main/nginx/nginx.pre-upgrade
@@ -0,0 +1,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
+