From a6fb551ee534e1b06ca6f6ac68807dd9f6db3e99 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Thu, 23 Apr 2026 12:25:07 +0200 Subject: [PATCH] fix(mealie): backup and restore start.sh alongside mealie.env Instead of recreating start.sh from a heredoc after CLEAN_INSTALL wipes /opt/mealie/*, simply back it up before the wipe and restore it together with mealie.env. Simpler and avoids any drift between the hardcoded heredoc and what was actually installed. --- ct/mealie.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/ct/mealie.sh b/ct/mealie.sh index 8cd1c9198..3a10488ad 100644 --- a/ct/mealie.sh +++ b/ct/mealie.sh @@ -38,19 +38,14 @@ function update_script() { msg_info "Backing up Configuration" cp -f /opt/mealie/mealie.env /opt/mealie.env + cp -f /opt/mealie/start.sh /opt/mealie.start.sh msg_ok "Backup completed" CLEAN_INSTALL=1 fetch_and_deploy_gh_release "mealie" "mealie-recipes/mealie" "tarball" msg_info "Restoring Configuration" mv -f /opt/mealie.env /opt/mealie/mealie.env - cat <<'STARTEOF' >/opt/mealie/start.sh -#!/bin/bash -set -a -source /opt/mealie/mealie.env -set +a -exec uv run mealie -STARTEOF + mv -f /opt/mealie.start.sh /opt/mealie/start.sh chmod +x /opt/mealie/start.sh msg_ok "Configuration restored"