File tree Expand file tree Collapse file tree
docker/rootfs/etc/s6-overlay/s6-rc.d/prepare Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- 2.15.0
1+ 2.15.1
Original file line number Diff line number Diff line change 11<p align =" center " >
22 <img src="https://nginxproxymanager.com/github.png">
33 <br><br>
4- <img src="https://img.shields.io/badge/version-2.15.0 -green.svg?style=for-the-badge">
4+ <img src="https://img.shields.io/badge/version-2.15.1 -green.svg?style=for-the-badge">
55 <a href="https://hub.docker.com/repository/docker/jc21/nginx-proxy-manager">
66 <img src="https://img.shields.io/docker/stars/jc21/nginx-proxy-manager.svg?style=for-the-badge">
77 </a>
Original file line number Diff line number Diff line change 88
99log_info ' IPv6 ...'
1010
11+ is_mounted () {
12+ awk -v p=" $1 " ' $5 == p { found=1 } END { exit !found }' /proc/self/mountinfo
13+ }
14+
1115process_folder () {
1216 FILES=$( find " $1 " -type f -name " *.conf" )
1317 SED_REGEX=
@@ -26,7 +30,10 @@ process_folder () {
2630 do
2731 echo " - ${FILE} "
2832 TMPFILE=" ${FILE} .tmp"
29- if sed -E " $SED_REGEX " " $FILE " > " $TMPFILE " && [ -s " $TMPFILE " ]; then
33+
34+ if is_mounted " ${FILE} " ; then
35+ echo " WARNING: skipping ${FILE} — mounted file" >&2
36+ elif sed -E " $SED_REGEX " " $FILE " > " $TMPFILE " && [ -s " $TMPFILE " ]; then
3037 mv " $TMPFILE " " $FILE "
3138 else
3239 echo " WARNING: skipping ${FILE} — sed produced empty output" >&2
You can’t perform that action at this time.
0 commit comments