From 4b786bf6c78b2d564c75fb25848f231739714c0e Mon Sep 17 00:00:00 2001 From: Mohammed Amar-Bensaber Date: Wed, 28 Aug 2024 22:12:40 +0200 Subject: wireguard: postinst: enable and start wg0 service --- debian/wireguard-config.postinst | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 debian/wireguard-config.postinst diff --git a/debian/wireguard-config.postinst b/debian/wireguard-config.postinst new file mode 100644 index 0000000..d29471f --- /dev/null +++ b/debian/wireguard-config.postinst @@ -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 -- cgit v1.2.3