Run the patching script as long as it exists

This commit is contained in:
tcely
2026-01-11 09:04:02 -05:00
committed by GitHub
parent b07adff363
commit 82c2e6c2e2

View File

@@ -11,5 +11,14 @@ HOST=127.0.0.1
PORT=8011
export HOST PORT
# Patching dependencies to prefix them with `npm:`
# Hopefully, soon, this script won't exist on the default branch.
if [ -d ejs/src ] && [ -f scripts/patch-ejs.ts ]; then
chown -R app:app ejs/src
s6-setuidgid app \
deno run --allow-read --allow-write ./scripts/patch-ejs.ts
chown -R root:app ejs/src
fi
exec s6-setuidgid app \
deno run --allow-env --allow-net --allow-read --allow-write server.ts