Compare commits

...

1 Commits

Author SHA1 Message Date
MickLesk cdf4d61888 Vikunja: fold the package's service block into the config's service section
Since 2.7.1 the deb's postinst appends a live service: block with the secret, so uncommenting the stock service: line left two service keys and Vikunja fell back to its defaults. Updates merge the duplicate on existing installs.
2026-10-29 17:33:15 +01:00
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -47,6 +47,13 @@ function update_script() {
[[ "$CONFIRM2" =~ ^[yY]$ ]] || exit 0
fi
if [[ $(grep -c '^service:' /etc/vikunja/config.yml || true) -gt 1 ]]; then
msg_info "Merging duplicate service section in config.yml"
sed -i '0,/^service:/!{/^service:/d}' /etc/vikunja/config.yml
systemctl restart vikunja
msg_ok "Merged duplicate service section in config.yml"
fi
if check_for_gh_release "vikunja" "go-vikunja/vikunja"; then
echo
msg_warn "The package update may include config file changes."
+1
View File
@@ -17,6 +17,7 @@ fetch_and_deploy_gh_release "vikunja" "go-vikunja/vikunja" "binary" "latest" ""
msg_info "Setting up Vikunja"
sed -i 's|^# \(service:\)|\1|' /etc/vikunja/config.yml
sed -i '0,/^service:/!{/^service:/d}' /etc/vikunja/config.yml
sed -i "s|^ # \(publicurl: \).*| \1\"http://$LOCAL_IP\"|" /etc/vikunja/config.yml
sed -i "0,/^ # \(timezone: \).*/s|| \1${tz}|" /etc/vikunja/config.yml
systemctl enable -q --now vikunja