Fix: update.sh aktualisiert sich selbst + scripts/ immer am Ende

Beide Scripts werden jetzt bei jedem erfolgreichen Update eingespielt,
unabhängig von CHANGED_FILES — löst den Bootstrap-Problem wo die alte
mailwolt-update Version die neue Logik nicht kannte.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
main v1.1.265
boban 2026-04-26 06:58:15 +02:00
parent 22eee053a3
commit 3b0ebce1df
1 changed files with 6 additions and 1 deletions

View File

@ -297,4 +297,9 @@ fi
NEW_VER="$(get_version)"
write_version_files "$NEW_VER" "$NEW_REV"
echo "[✓] Update abgeschlossen: ${OLD_VER}${NEW_VER} (${OLD_REV:0:7}${NEW_REV:0:7})"
echo "[✓] Update abgeschlossen: ${OLD_VER}${NEW_VER} (${OLD_REV:0:7}${NEW_REV:0:7})"
# Immer: System-Scripts auf den neuesten Stand bringen (selbst wenn nicht in CHANGED_FILES)
[[ -f "${APP_DIR}/scripts/mailwolt-apply-domains" ]] && \
install -m 755 "${APP_DIR}/scripts/mailwolt-apply-domains" /usr/local/sbin/mailwolt-apply-domains
install -m 755 "${APP_DIR}/update.sh" /usr/local/sbin/mailwolt-update