mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-11-05 02:42:50 +00:00
Open Archiver: Fix missing command in update procedure (#8765)
* Fix update * Update * Update * Update service file
This commit is contained in:
@@ -38,11 +38,16 @@ function update_script() {
|
|||||||
mv /opt/openarchiver.env /opt/openarchiver/.env
|
mv /opt/openarchiver.env /opt/openarchiver/.env
|
||||||
|
|
||||||
msg_info "Updating Open Archiver"
|
msg_info "Updating Open Archiver"
|
||||||
|
cd /opt/openarchiver
|
||||||
$STD pnpm install --shamefully-hoist --frozen-lockfile --prod=false
|
$STD pnpm install --shamefully-hoist --frozen-lockfile --prod=false
|
||||||
$STD pnpm build
|
$STD pnpm run build:oss
|
||||||
$STD pnpm db:migrate
|
$STD pnpm db:migrate
|
||||||
msg_ok "Updated Open Archiver"
|
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"
|
msg_info "Starting Services"
|
||||||
systemctl start openarchiver
|
systemctl start openarchiver
|
||||||
msg_ok "Started Services"
|
msg_ok "Started Services"
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ sed -i "s|^ENCRYPTION_KEY=.*|ENCRYPTION_KEY=$SECRET_KEY|g" /opt/openarchiver/.en
|
|||||||
sed -i "s|^TIKA_URL=.*|TIKA_URL=|g" /opt/openarchiver/.env
|
sed -i "s|^TIKA_URL=.*|TIKA_URL=|g" /opt/openarchiver/.env
|
||||||
echo "ORIGIN=http://$IP_ADDR:3000" >> /opt/openarchiver/.env
|
echo "ORIGIN=http://$IP_ADDR:3000" >> /opt/openarchiver/.env
|
||||||
$STD pnpm install --shamefully-hoist --frozen-lockfile --prod=false
|
$STD pnpm install --shamefully-hoist --frozen-lockfile --prod=false
|
||||||
$STD pnpm build
|
$STD pnpm run build:oss
|
||||||
$STD pnpm db:migrate
|
$STD pnpm db:migrate
|
||||||
msg_ok "Setup Open Archiver"
|
msg_ok "Setup Open Archiver"
|
||||||
|
|
||||||
@@ -105,7 +105,7 @@ Type=simple
|
|||||||
User=root
|
User=root
|
||||||
EnvironmentFile=/opt/openarchiver/.env
|
EnvironmentFile=/opt/openarchiver/.env
|
||||||
WorkingDirectory=/opt/openarchiver
|
WorkingDirectory=/opt/openarchiver
|
||||||
ExecStart=/usr/bin/pnpm docker-start
|
ExecStart=/usr/bin/pnpm docker-start:oss
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|||||||
Reference in New Issue
Block a user