homepage: run next directly instead of through pnpm

This commit is contained in:
MickLesk
2026-09-10 14:04:25 +02:00
parent 2802f0fc55
commit d56c515240
2 changed files with 5 additions and 1 deletions

View File

@@ -83,6 +83,10 @@ EOF
sed -i '/^ExecStart=/i Environment=CI=true' /etc/systemd/system/homepage.service
systemctl daemon-reload
fi
if grep -q '^ExecStart=pnpm start' /etc/systemd/system/homepage.service; then
sed -i 's|^ExecStart=pnpm start$|ExecStart=/opt/homepage/node_modules/.bin/next start|' /etc/systemd/system/homepage.service
systemctl daemon-reload
fi
msg_ok "Updated Homepage"
msg_info "Starting service"

View File

@@ -64,7 +64,7 @@ RestartSec=1
User=root
WorkingDirectory=/opt/homepage/
Environment=CI=true
ExecStart=pnpm start
ExecStart=/opt/homepage/node_modules/.bin/next start
[Install]
WantedBy=multi-user.target