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).
This commit is contained in:
Orazio 2020-12-05 11:35:56 +01:00
parent 3ed54bf71d
commit 5aac8bca84

View file

@ -2007,7 +2007,7 @@ confOVPN(){
confWireGuard(){ confWireGuard(){
# Reload job type is not yet available in wireguard-tools shipped with Ubuntu 20.04 # 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" 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 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 $SUDO systemctl daemon-reload