Compare commits

...

1 Commits

Author SHA1 Message Date
MickLesk
d38344761d poznote: follow init.sh into docker/
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.
2026-09-17 10:06:16 +02:00
2 changed files with 8 additions and 4 deletions

View File

@@ -50,8 +50,10 @@ function update_script() {
restore_backup restore_backup
msg_info "Running Poznote Initialization" msg_info "Running Poznote Initialization"
chmod +x /opt/poznote/init.sh POZNOTE_INIT=/opt/poznote/docker/init.sh
$STD /opt/poznote/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_ok "Initialized Poznote Data Directory"
msg_info "Updating Nginx Configuration" msg_info "Updating Nginx Configuration"

View File

@@ -29,8 +29,10 @@ chown -R www-data:www-data /var/www/html
msg_ok "Deployed Poznote" msg_ok "Deployed Poznote"
msg_info "Running Poznote Initialization" msg_info "Running Poznote Initialization"
chmod +x /opt/poznote/init.sh POZNOTE_INIT=/opt/poznote/docker/init.sh
$STD /opt/poznote/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_ok "Initialized Poznote Data Directory"
msg_info "Configuring Nginx" msg_info "Configuring Nginx"