feature: the package installs the Router Manager, which is no longer a package of its own.
Release / release (push) Failing after 4s
Release / release (push) Failing after 4s
This commit is contained in:
1 parent
6d90441bee
commit
8efe21bfa6
129 files changed
+17381
-104
No files matched your search
@@ -63,6 +63,22 @@ case "$1" in
|
||||
# not blank the key on the next dpkg-reconfigure.
|
||||
db_set vpn-router/psk ""
|
||||
|
||||
# The Router Manager's administrator account for vpn-router-setup to create, when a name and a
|
||||
# password were given; the answers are cleared so that a later run does not ask for it again.
|
||||
db_get vpn-router/admin_username
|
||||
ADMIN_USERNAME="$RET"
|
||||
db_get vpn-router/admin_password
|
||||
ADMIN_PASSWORD="$RET"
|
||||
if [ -n "$ADMIN_USERNAME" ] && [ -n "$ADMIN_PASSWORD" ]; then
|
||||
(umask 077; ADMIN_USERNAME="$ADMIN_USERNAME" ADMIN_PASSWORD="$ADMIN_PASSWORD" python3 -c \
|
||||
'import json, os, sys; json.dump({"username": os.environ["ADMIN_USERNAME"], "password": os.environ["ADMIN_PASSWORD"]}, sys.stdout)' \
|
||||
> /etc/vpn-router/manager-admin.json)
|
||||
elif [ -n "$ADMIN_USERNAME" ]; then
|
||||
echo 'vpn-router: no administrator password was given; no Router Manager administrator is created' >&2
|
||||
fi
|
||||
db_set vpn-router/admin_username ""
|
||||
db_set vpn-router/admin_password ""
|
||||
|
||||
# Apply the sysctl drop-in shipped by this package so it takes effect
|
||||
# without waiting for a reboot.
|
||||
sysctl --system >/dev/null
|
||||
@@ -71,12 +87,13 @@ case "$1" in
|
||||
# setting the forward policy all belong to vpn-router-setup, which does
|
||||
# them only once the configuration says this host is a router.
|
||||
|
||||
# The setup and web services wait for libpq in the linker cache, which
|
||||
# dpkg refreshes after this script, so they are started without waiting
|
||||
# for them.
|
||||
# The setup, web and manager services wait for libpq in the linker cache,
|
||||
# which dpkg refreshes after this script, so they are started without
|
||||
# waiting for them.
|
||||
if [ -d /run/systemd/system ]; then
|
||||
systemctl --no-block restart vpn-router-setup.service >/dev/null 2>&1 || true
|
||||
systemctl --no-block restart vpn-router-web.service >/dev/null 2>&1 || true
|
||||
systemctl --no-block restart vpn-router-manager.service >/dev/null 2>&1 || true
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in new issue
Block a user