shione/debian/wireguard-config.postinst

12 lines
177 B
Text
Raw Normal View History

#!/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