aboutsummaryrefslogtreecommitdiffstats
path: root/debian/wireguard-config.postinst
diff options
context:
space:
mode:
authorMohammed Amar-Bensaber <renken@shione.net>2024-08-28 22:12:40 +0200
committerMohammed Amar-Bensaber <renken@shione.net>2024-08-28 22:12:40 +0200
commit4b786bf6c78b2d564c75fb25848f231739714c0e (patch)
tree636376b4f9b6db02dd3260324531274cb5530c8e /debian/wireguard-config.postinst
parent1c18557adc194890aaca1300d851cd54a5b88418 (diff)
downloadshione-4b786bf6c78b2d564c75fb25848f231739714c0e.tar.gz
shione-4b786bf6c78b2d564c75fb25848f231739714c0e.zip
wireguard: postinst: enable and start wg0 service
Diffstat (limited to 'debian/wireguard-config.postinst')
-rw-r--r--debian/wireguard-config.postinst11
1 files changed, 11 insertions, 0 deletions
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