From 82c2e6c2e2557c02a4670e81030309df4aa95a5a Mon Sep 17 00:00:00 2001 From: tcely Date: Sun, 11 Jan 2026 09:04:02 -0500 Subject: [PATCH] Run the patching script as long as it exists --- config/root/etc/s6-overlay/s6-rc.d/yt-cipher/run | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config/root/etc/s6-overlay/s6-rc.d/yt-cipher/run b/config/root/etc/s6-overlay/s6-rc.d/yt-cipher/run index 76fc101d..ffcff730 100755 --- a/config/root/etc/s6-overlay/s6-rc.d/yt-cipher/run +++ b/config/root/etc/s6-overlay/s6-rc.d/yt-cipher/run @@ -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