fix: package upgrades no longer ask the configuration questions.
Release / release (push) Successful in 18s
Release / release (push) Successful in 18s
This commit is contained in:
1 parent
cda33fc4c7
commit
f135d776f8
3 files changed
+17
-2
No files matched your search
@@ -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
|
||||
|
||||
fix: an upgrade keeps the configuration and asks nothing.
|
||||
|
||||
@@ -2,6 +2,12 @@
|
||||
set -e
|
||||
. /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
|
||||
# preseeded completes without prompting. The defaults are platform "none" and
|
||||
# mode "manual", which together mean: install the files, configure nothing.
|
||||
|
||||
Reference in new issue
Block a user