From 251fd0b6b88c9e57ed86b715069a860a79edbe0d Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Thu, 17 Sep 2026 10:27:19 +0200 Subject: [PATCH] poznote: follow init.sh into docker/ (#17316) 6.87.0 moved init.sh from the repository root to docker/init.sh, so the update stopped at chmod: cannot access '/opt/poznote/init.sh': No such file or directory The file itself is byte for byte the same and uses absolute paths only, so running it from the new location changes nothing. Prefer docker/ and fall back to the old path, since a container pinned to an older release still has it there. --- ct/poznote.sh | 6 ++++-- install/poznote-install.sh | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ct/poznote.sh b/ct/poznote.sh index 535cd67f8..ab2bf24b5 100644 --- a/ct/poznote.sh +++ b/ct/poznote.sh @@ -50,8 +50,10 @@ function update_script() { restore_backup msg_info "Running Poznote Initialization" - chmod +x /opt/poznote/init.sh - $STD /opt/poznote/init.sh + POZNOTE_INIT=/opt/poznote/docker/init.sh + [[ -f "$POZNOTE_INIT" ]] || POZNOTE_INIT=/opt/poznote/init.sh + chmod +x "$POZNOTE_INIT" + $STD "$POZNOTE_INIT" msg_ok "Initialized Poznote Data Directory" msg_info "Updating Nginx Configuration" diff --git a/install/poznote-install.sh b/install/poznote-install.sh index 72513c730..1fe269187 100644 --- a/install/poznote-install.sh +++ b/install/poznote-install.sh @@ -29,8 +29,10 @@ chown -R www-data:www-data /var/www/html msg_ok "Deployed Poznote" msg_info "Running Poznote Initialization" -chmod +x /opt/poznote/init.sh -$STD /opt/poznote/init.sh +POZNOTE_INIT=/opt/poznote/docker/init.sh +[[ -f "$POZNOTE_INIT" ]] || POZNOTE_INIT=/opt/poznote/init.sh +chmod +x "$POZNOTE_INIT" +$STD "$POZNOTE_INIT" msg_ok "Initialized Poznote Data Directory" msg_info "Configuring Nginx"