Open Archiver: Fix missing command in update procedure (#8765)

* Fix update

* Update

* Update

* Update service file
This commit is contained in:
Slaviša Arežina
2025-10-30 19:07:23 +01:00
committed by GitHub
parent 2cfe936605
commit 0a25106abd
2 changed files with 8 additions and 3 deletions

View File

@@ -38,11 +38,16 @@ function update_script() {
mv /opt/openarchiver.env /opt/openarchiver/.env
msg_info "Updating Open Archiver"
cd /opt/openarchiver
$STD pnpm install --shamefully-hoist --frozen-lockfile --prod=false
$STD pnpm build
$STD pnpm run build:oss
$STD pnpm db:migrate
msg_ok "Updated Open Archiver"
if grep -q '^ExecStart=/usr/bin/pnpm docker-start$' /etc/systemd/system/openarchiver.service; then
sed -i 's|^ExecStart=/usr/bin/pnpm docker-start$|ExecStart=/usr/bin/pnpm docker-start:oss|' /etc/systemd/system/openarchiver.service
fi
msg_info "Starting Services"
systemctl start openarchiver
msg_ok "Started Services"