From 5aac8bca84744bbee9b65260836dd5ba3f386ae2 Mon Sep 17 00:00:00 2001 From: Orazio Date: Sat, 5 Dec 2020 11:35:56 +0100 Subject: [PATCH] Changed WireGuard unit path to /lib/systemd/system/wg-quick@.service - On Raspbian, /lib is not a symbolic link to /usr/lib, so the WireGuard unit won't be found. Therefore changed to /lib/... (which is the default location for units of installed packages). --- auto_install/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto_install/install.sh b/auto_install/install.sh index 2649b18..8aee5c8 100755 --- a/auto_install/install.sh +++ b/auto_install/install.sh @@ -2007,7 +2007,7 @@ confOVPN(){ confWireGuard(){ # Reload job type is not yet available in wireguard-tools shipped with Ubuntu 20.04 - if ! grep -q 'ExecReload' /usr/lib/systemd/system/wg-quick@.service; then + if ! grep -q 'ExecReload' /lib/systemd/system/wg-quick@.service; then echo "::: Adding additional reload job type for wg-quick unit" $SUDO install -D -m 644 "${pivpnFilesDir}"/files/etc/systemd/system/wg-quick@.service.d/override.conf /etc/systemd/system/wg-quick@.service.d/override.conf $SUDO systemctl daemon-reload