🐳 Prevent error if config.js is a bind mounted file

This commit is contained in:
David Barragán Merino
2025-10-13 12:36:51 +02:00
committed by Andrey Antukh
parent c4cd665594
commit b10dcb2d63

View File

@@ -15,16 +15,14 @@ fi
update_flags() { update_flags() {
if [ -n "$PENPOT_FLAGS" ]; then if [ -n "$PENPOT_FLAGS" ]; then
sed -i \ echo "$(sed \
-e "s|^//var penpotFlags = .*;|var penpotFlags = \"$PENPOT_FLAGS\";|g" \ -e "s|^//var penpotFlags = .*;|var penpotFlags = \"$PENPOT_FLAGS\";|g" \
"$1" "$1")" > "$1"
fi fi
} }
update_flags /var/www/app/js/config.js update_flags /var/www/app/js/config.js
######################################### #########################################
## Nginx Config ## Nginx Config
######################################### #########################################