From b10dcb2d63338dc2496919e0146e45020042d4e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Barrag=C3=A1n=20Merino?= Date: Mon, 13 Oct 2025 12:36:51 +0200 Subject: [PATCH] :whale: Prevent error if config.js is a bind mounted file --- docker/images/files/nginx-entrypoint.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docker/images/files/nginx-entrypoint.sh b/docker/images/files/nginx-entrypoint.sh index 7180b07603..1c6621fba3 100644 --- a/docker/images/files/nginx-entrypoint.sh +++ b/docker/images/files/nginx-entrypoint.sh @@ -15,16 +15,14 @@ fi update_flags() { if [ -n "$PENPOT_FLAGS" ]; then - sed -i \ + echo "$(sed \ -e "s|^//var penpotFlags = .*;|var penpotFlags = \"$PENPOT_FLAGS\";|g" \ - "$1" + "$1")" > "$1" fi } update_flags /var/www/app/js/config.js - - ######################################### ## Nginx Config #########################################