fix templates

This commit is contained in:
ace 2022-07-13 15:33:19 +03:00
parent 4bb14575d6
commit 14158de481
No known key found for this signature in database
GPG Key ID: 2E47CC17BA7F8CF0
2 changed files with 3 additions and 3 deletions

View File

@ -1,8 +1,8 @@
[Unit] [Unit]
Description=Watch {{ wireguard_ui_combined_env['WGUI_CONFIG_FILE_PATH'] }} for changes Description=Watch {{ wireguard_ui_env['WGUI_CONFIG_FILE_PATH'] }} for changes
[Path] [Path]
PathModified={{ wireguard_ui_combined_env['WGUI_CONFIG_FILE_PATH'] }} PathModified={{ wireguard_ui_env['WGUI_CONFIG_FILE_PATH'] }}
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File

@ -4,7 +4,7 @@ After=network.target
[Service] [Service]
Type=oneshot Type=oneshot
ExecStart=/usr/bin/systemctl restart wg-quick@{{ wireguard_ui_combined_env['WGUI_CONFIG_FILE_PATH'] | basename | split(".")[0] }}.service ExecStart=/usr/bin/systemctl restart wg-quick@{{ wireguard_ui_env['WGUI_CONFIG_FILE_PATH'] | basename | split(".")[0] }}.service
[Install] [Install]
RequiredBy=wireguard-ui-watcher.path RequiredBy=wireguard-ui-watcher.path