Compare commits

...

1 Commits

Author SHA1 Message Date
MickLesk
1dd0be78ba bookorbit: raise service start timeout, migration can exceed systemd default 2026-08-29 23:46:54 +02:00
2 changed files with 8 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
#!/usr/bin/env bash
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main"
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
@@ -56,6 +58,10 @@ function update_script() {
restore_backup
APP_VER=$(cat ~/.bookorbit)
sed -i "s/^APP_VERSION=.*/APP_VERSION=v$APP_VER/" /opt/bookorbit/.env
if ! grep -q '^TimeoutStartSec=' /etc/systemd/system/bookorbit.service; then
sed -i '/^\[Service\]/a TimeoutStartSec=infinity' /etc/systemd/system/bookorbit.service
systemctl daemon-reload
fi
msg_ok "Rebuilt Application"
msg_info "Updating Kobo Python Runtime"

View File

@@ -81,6 +81,7 @@ Requires=postgresql.service
[Service]
Type=simple
User=root
TimeoutStartSec=infinity
WorkingDirectory=/opt/bookorbit/server
EnvironmentFile=/opt/bookorbit/.env
ExecStartPre=/usr/bin/node /opt/bookorbit/server/dist/scripts/migrate.js