wireguard: postinst: enable and start wg0 service
This commit is contained in:
parent
1c18557adc
commit
4b786bf6c7
1 changed files with 11 additions and 0 deletions
11
debian/wireguard-config.postinst
vendored
Normal file
11
debian/wireguard-config.postinst
vendored
Normal 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
|
Loading…
Reference in a new issue