Skip to content

Commit 3ceb7ea

Browse files
committed
Replace arabic key for better to chekc beter logs
1 parent 1449596 commit 3ceb7ea

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

images/web/start.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ EOF
3030
echo "S3 storage configuration set successfully."
3131
fi
3232

33+
#### Fix translation files: replace {مجتمع} with {community} to prevent KeyError
34+
# This fixes the KeyError when template has Arabic placeholder but hash only has :community
35+
find "$workdir/node_modules/osm-community-index/i18n" -name "*.yaml" -type f -exec sed -i 's/{مجتمع}/{community}/g' {} \;
36+
37+
3338
#### Initializing an empty $workdir/config/settings.local.yml file, typically used for development settings
3439
echo "" > $workdir/config/settings.local.yml
3540

@@ -76,6 +81,7 @@ EOF
7681
chmod 400 /var/www/private.pem
7782
export DOORKEEPER_SIGNING_KEY=$(cat /var/www/private.pem | sed -e '1d;$d' | tr -d '\n')
7883
sed -i "s#PRIVATE_KEY#${DOORKEEPER_SIGNING_KEY}#" $workdir/config/settings.yml
84+
7985
}
8086

8187
restore_db() {

0 commit comments

Comments
 (0)