fix: package upgrades no longer ask the configuration questions.
Release / release (push) Successful in 18s

This commit is contained in:
slawek committed 2026-10-24 02:16:19 +02:00
1 parent cda33fc4c7
commit f135d776f8
3 files changed
+17 -2

No files matched your search

+2 -2
View File
@@ -86,8 +86,8 @@ that deploy a router on Azure or GCP.
`/etc/vpn-router/vpn-router.json` is JSON, mode 0600, and is created on first install. It `/etc/vpn-router/vpn-router.json` is JSON, mode 0600, and is created on first install. It
is managed with `ucf`, so it is yours to edit: a later `dpkg-reconfigure` applies the answers is managed with `ucf`, so it is yours to edit: a later `dpkg-reconfigure` applies the answers
given and asks before touching anything you altered by hand, and an upgrade leaves the file as given and asks before touching anything you altered by hand, and an upgrade asks no questions
it is and asks nothing. Settings the file leaves out take their defaults when it is read, so a and leaves the file as it is. Settings the file leaves out take their defaults when it is read, so a
file written by cloud-init or by hand needs only the settings that differ. A complete example is file written by cloud-init or by hand needs only the settings that differ. A complete example is
installed at `/usr/share/doc/vpn-router/vpn-router.json.example`. installed at `/usr/share/doc/vpn-router/vpn-router.json.example`.
+9
View File
@@ -1,3 +1,12 @@
vpn-router (0.5.9-1) unstable; urgency=medium
fix: package upgrades no longer ask the configuration questions.
* The configuration questions are asked only on a fresh installation and
by dpkg-reconfigure.
-- Slawomir Koszewski <slawek@koszewscy.waw.pl> Sat, 24 Oct 2026 21:00:00 +0200
vpn-router (0.5.8-1) unstable; urgency=medium vpn-router (0.5.8-1) unstable; urgency=medium
fix: an upgrade keeps the configuration and asks nothing. fix: an upgrade keeps the configuration and asks nothing.
+6
View File
@@ -2,6 +2,12 @@
set -e set -e
. /usr/share/debconf/confmodule . /usr/share/debconf/confmodule
# An upgrade (configure with the old version) asks nothing; vpn-router.json holds the
# configuration, and dpkg-reconfigure asks the questions again.
if [ "$1" = "configure" ] && [ -n "$2" ]; then
exit 0
fi
# Every question has a default, so a non-interactive install with nothing # Every question has a default, so a non-interactive install with nothing
# preseeded completes without prompting. The defaults are platform "none" and # preseeded completes without prompting. The defaults are platform "none" and
# mode "manual", which together mean: install the files, configure nothing. # mode "manual", which together mean: install the files, configure nothing.