diff --git a/templates/systemd/wg_vpn.service.j2 b/templates/systemd/wg_vpn.service.j2 index 0aeaa9f..06dc1bc 100644 --- a/templates/systemd/wg_vpn.service.j2 +++ b/templates/systemd/wg_vpn.service.j2 @@ -4,7 +4,7 @@ After=network.target [Service] Type=oneshot -ExecStart=/usr/bin/sh -c '/usr/bin/systemctl restart wg-quick@wg0.service ; /usr/bin/echo "Your VPN config has changed, download the new config from https://vpn.{{ mailserver_domain }}" | mailx -s "VPN config change on vpn.{{ mailserver_domain }}" -r noreply@{{ mailserver_domain }} -b {{ users | map(attribute="name") | join('@' ~ mailserver_domain ~ ' -b ') }}@{{ mailserver_domain }} -b vpn@{{ mailserver_domain }}' +ExecStart=/usr/bin/sh -c '/usr/bin/systemctl restart wg-quick@wg0.service ; /usr/bin/echo "Your VPN config has changed, download the new config from https://vpn.{{ mailserver_domain }}" | mailx -s "VPN config change on vpn.{{ mailserver_domain }}" -r noreply@{{ mailserver_domain }} -b {{ users | map(attribute="name") | join('@' ~ mailserver_domain ~ ' -b ') }}@{{ mailserver_domain }} vpn@{{ mailserver_domain }}' [Install] RequiredBy=wg_vpn.path