mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
🐳 Prevent error if config.js is a bind mounted file
This commit is contained in:
committed by
Andrey Antukh
parent
c4cd665594
commit
b10dcb2d63
@@ -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
|
||||||
#########################################
|
#########################################
|
||||||
|
|||||||
Reference in New Issue
Block a user