Skip to content

Commit

Permalink
no bcc for vpn service
Browse files Browse the repository at this point in the history
  • Loading branch information
suhancz committed Oct 29, 2023
1 parent da15b39 commit ff74bdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/systemd/wg_vpn.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ After=network.target

[Service]
Type=oneshot
ExecStart=/usr/bin/sh -c '/usr/bin/systemctl restart [email protected] ; /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 [email protected] ; /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
Expand Down

0 comments on commit ff74bdf

Please sign in to comment.