Merge pull request #1168 from jeffrysurya/test

add -D to create the folder
This commit is contained in:
Orazio 2020-10-25 19:07:13 +01:00 committed by GitHub
commit bfe611dbf1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2040,7 +2040,7 @@ 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
echo "::: Adding additional reload job type for wg-quick unit"
$SUDO install -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
fi