wireguard: postinst: enable and start wg0 service

This commit is contained in:
Mohammed Amar-Bensaber 2024-08-28 22:12:40 +02:00
parent 1c18557adc
commit 4b786bf6c7
Signed by: renken
GPG key ID: 1F2BB159B645E575

11
debian/wireguard-config.postinst vendored Normal file
View file

@ -0,0 +1,11 @@
#!/bin/sh
#
# TODO: Handle "$1".
set -e
#DEBHELPER#
# Start wireguard service with `wg0.conf`.
deb-systemd-helper enable wg-quick@wg0
deb-systemd-invoke restart wg-quick@wg0