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() {
|
||||
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
|
||||
#########################################
|
||||
|
||||
Reference in New Issue
Block a user