Compare commits

..

2 Commits

Author SHA1 Message Date
MickLesk 099c94955f minor fix 2026-07-27 09:19:38 +02:00
MickLesk 665f0dbee5 Pin Vikunja install/update to v2.3.0
Set both install and update scripts to deploy Vikunja v2.3.0 instead of latest. The update flow now checks against this pinned release and includes context that v2.4.0 is temporarily avoided due to an upstream startup failure caused by the packaged systemd SystemCallFilter.
2026-07-27 09:19:15 +02:00
3 changed files with 15 additions and 23 deletions
+6 -5
View File
@@ -29,9 +29,9 @@ function update_script() {
exit exit
fi fi
RELEASE="$( [[ -f "$HOME/.vikunja" ]] && cat "$HOME/.vikunja" 2>/dev/null || [[ -f /opt/Vikunja_version ]] && cat /opt/Vikunja_version 2>/dev/null || true)" INSTALLED_VERSION="$( [[ -f "$HOME/.vikunja" ]] && cat "$HOME/.vikunja" 2>/dev/null || [[ -f /opt/Vikunja_version ]] && cat /opt/Vikunja_version 2>/dev/null || true)"
if [[ -z "$RELEASE" ]] || [[ "$RELEASE" == "unstable" ]] || dpkg --compare-versions "${RELEASE:-0.0.0}" lt "1.0.0"; then if [[ -z "$INSTALLED_VERSION" ]] || [[ "$INSTALLED_VERSION" == "unstable" ]] || dpkg --compare-versions "${INSTALLED_VERSION:-0.0.0}" lt "1.0.0"; then
msg_warn "You are upgrading from Vikunja '$RELEASE'." msg_warn "You are upgrading from Vikunja '$INSTALLED_VERSION'."
msg_warn "This requires MANUAL config changes in /etc/vikunja/config.yml." msg_warn "This requires MANUAL config changes in /etc/vikunja/config.yml."
msg_warn "See: https://vikunja.io/changelog/whats-new-in-vikunja-1.0.0/#config-changes" msg_warn "See: https://vikunja.io/changelog/whats-new-in-vikunja-1.0.0/#config-changes"
@@ -46,7 +46,8 @@ function update_script() {
[[ "$CONFIRM2" =~ ^[yY]$ ]] || exit 0 [[ "$CONFIRM2" =~ ^[yY]$ ]] || exit 0
fi fi
if check_for_gh_release "vikunja" "go-vikunja/vikunja"; then RELEASE="v2.3.0"
if check_for_gh_release "vikunja" "go-vikunja/vikunja" "${RELEASE}" "v2.4.0 is killed at startup by the systemd SystemCallFilter shipped in the .deb (upstream go-vikunja/vikunja#3252); pinned until a fixed release is out"; then
echo echo
msg_warn "The package update may include config file changes." msg_warn "The package update may include config file changes."
echo -e "${TAB}${YW}How do you want to handle /etc/vikunja/config.yml?${CL}" echo -e "${TAB}${YW}How do you want to handle /etc/vikunja/config.yml?${CL}"
@@ -65,7 +66,7 @@ function update_script() {
systemctl stop vikunja systemctl stop vikunja
msg_ok "Stopped Service" msg_ok "Stopped Service"
fetch_and_deploy_gh_release "vikunja" "go-vikunja/vikunja" "binary" "latest" "" "vikunja-*-$(arch_resolve "x86_64" "aarch64").deb" fetch_and_deploy_gh_release "vikunja" "go-vikunja/vikunja" "binary" "${RELEASE}" "" "vikunja-*-$(arch_resolve "x86_64" "aarch64").deb"
$STD systemctl daemon-reload $STD systemctl daemon-reload
msg_info "Starting Service" msg_info "Starting Service"
+2 -1
View File
@@ -13,7 +13,8 @@ setting_up_container
network_check network_check
update_os update_os
fetch_and_deploy_gh_release "vikunja" "go-vikunja/vikunja" "binary" "latest" "" "vikunja-*-$(arch_resolve "x86_64" "aarch64").deb" RELEASE="v2.3.0"
fetch_and_deploy_gh_release "vikunja" "go-vikunja/vikunja" "binary" "${RELEASE}" "" "vikunja-*-$(arch_resolve "x86_64" "aarch64").deb"
msg_info "Setting up Vikunja" msg_info "Setting up Vikunja"
sed -i 's|^# \(service:\)|\1|' /etc/vikunja/config.yml sed -i 's|^# \(service:\)|\1|' /etc/vikunja/config.yml
+7 -17
View File
@@ -6070,14 +6070,14 @@ create_lxc_container() {
_has_fallback_option=true _has_fallback_option=true
echo " [1] Run host upgrade now (recommended). WARNING: this runs apt upgrade and updates all Packages on your host!" echo " [1] Run host upgrade now (recommended). WARNING: this runs apt upgrade and updates all Packages on your host!"
echo " [2] Use an older ${PCT_OSTYPE} template instead (may not work with all scripts)" echo " [2] Use an older ${PCT_OSTYPE} template instead (may not work with all scripts)"
echo " [3] Ignore (continue without upgrading)" echo " [3] Ignore"
echo " [4] Cancel (abort the script)" echo " [4] Cancel"
echo echo
read -rp "Select option [1/2/3/4]: " _ans </dev/tty read -rp "Select option [1/2/3/4]: " _ans </dev/tty
else else
echo " [1] Run host upgrade now (recommended). WARNING: this runs apt upgrade and updates all Packages on your host!" echo " [1] Run host upgrade now (recommended). WARNING: this runs apt upgrade and updates all Packages on your host!"
echo " [2] Ignore (continue without upgrading)" echo " [2] Ignore"
echo " [3] Cancel (abort the script)" echo " [3] Cancel"
echo echo
read -rp "Select option [1/2/3]: " _ans </dev/tty read -rp "Select option [1/2/3]: " _ans </dev/tty
fi fi
@@ -6101,8 +6101,7 @@ create_lxc_container() {
return 4 return 4
;; ;;
*) *)
# Unrecognized/empty input: treat as ignore, never as an implicit cancel return 4
return 2
;; ;;
esac esac
else else
@@ -6113,12 +6112,8 @@ create_lxc_container() {
2) 2)
return 2 return 2
;; ;;
3)
return 4
;;
*) *)
# Unrecognized/empty input: treat as ignore, never as an implicit cancel return 4
return 2
;; ;;
esac esac
fi fi
@@ -6706,12 +6701,7 @@ create_lxc_container() {
if [[ "$PCT_OSTYPE" == "debian" ]]; then if [[ "$PCT_OSTYPE" == "debian" ]]; then
OSVER="$(parse_template_osver "$TEMPLATE")" OSVER="$(parse_template_osver "$TEMPLATE")"
if [[ -n "$OSVER" ]]; then if [[ -n "$OSVER" ]]; then
local _lxc_stack_rc=0 offer_lxc_stack_upgrade_and_maybe_retry "no" || true
offer_lxc_stack_upgrade_and_maybe_retry "no" || _lxc_stack_rc=$?
# 4 = user chose "Cancel" -> honor it and abort before creating the container
if [[ $_lxc_stack_rc -eq 4 ]]; then
exit_script
fi
fi fi
fi fi