aboutsummaryrefslogtreecommitdiffstats
path: root/main/nginx/nginx.post-upgrade
diff options
context:
space:
mode:
Diffstat (limited to 'main/nginx/nginx.post-upgrade')
-rw-r--r--main/nginx/nginx.post-upgrade11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/nginx/nginx.post-upgrade b/main/nginx/nginx.post-upgrade
index 8404e1ceb3..8b6cddf9de 100644
--- a/main/nginx/nginx.post-upgrade
+++ b/main/nginx/nginx.post-upgrade
@@ -62,4 +62,15 @@ if [ "$(apk version -t "$ver_old" '1.18.0-r13')" = '<' ]; then
EOF
fi
+# Handle trasition from /var/tmp/nginx to /var/lib/nginx/tmp
+# https://gitlab.alpinelinux.org/alpine/aports/-/issues/11204
+if [ -d /var/lib/nginx/tmp ]; then
+ for i in /var/tmp/nginx/*; do
+ if [ -e "$i" ]; then
+ mv $i /var/lib/nginx/tmp/
+ fi
+ done
+ rmdir /var/tmp/nginx 2>/dev/null
+fi
+
exit 0