add bash and node to path so pnpm build functions

This commit is contained in:
Lewis Wynne 2026-04-07 13:49:54 +01:00
parent 83aa6fb46d
commit 70738f4c97

View file

@ -40,6 +40,7 @@ in
systemd.services.wynne-rebuild = {
description = "Clone/pull and build wynne.rs";
after = [ "network-online.target" ];
path = [ pkgs.nodejs pkgs.bash ];
environment = {
ASTRO_DB_REMOTE_URL = "file:${dataDir}/data/guestbook.db";
};
@ -61,7 +62,7 @@ in
${pkgs.git}/bin/git fetch origin
${pkgs.git}/bin/git reset --hard origin/master
${pkgs.pnpm}/bin/pnpm install --frozen-lockfile
${pkgs.pnpm}/bin/pnpm build
${pkgs.pnpm}/bin/pnpm build
'';
# + prefix runs this line as root (wynne user can't restart services)
ExecStartPost = "+/run/current-system/sw/bin/systemctl restart wynne";