We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 195f320 commit 288c0c0Copy full SHA for 288c0c0
rootfs/etc/cont-init.d/nginx-proxy-manager.sh
@@ -68,9 +68,10 @@ touch /config/log/nginx/manager.log
68
[ ! -L /config/logs ] || rm /config/logs
69
70
# Fix any references to the old log path.
71
-if ls /config/nginx/*/*.conf >/dev/null 2>&1; then
72
- sed -i 's|/data/logs/|/config/log/|' /config/nginx/*/*.conf
73
-fi
+find /config/nginx -not \( -path /config/nginx/custom -prune \) -type f -name '*.conf' | while read file
+do
+ sed -i 's|/data/logs/|/config/log/|' "$file"
74
+done
75
76
# Install default config.
77
[ -f /config/nginx/ip_ranges.conf ] || cp /defaults/ip_ranges.conf /config/nginx/
0 commit comments