diff --git a/templates/wireguard-ui-watcher.path.j2 b/templates/wireguard-ui-watcher.path.j2 index 42f30db..6635b07 100644 --- a/templates/wireguard-ui-watcher.path.j2 +++ b/templates/wireguard-ui-watcher.path.j2 @@ -1,8 +1,8 @@ [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] -PathModified={{ wireguard_ui_combined_env['WGUI_CONFIG_FILE_PATH'] }} +PathModified={{ wireguard_ui_env['WGUI_CONFIG_FILE_PATH'] }} [Install] WantedBy=multi-user.target diff --git a/templates/wireguard-ui-watcher.service.j2 b/templates/wireguard-ui-watcher.service.j2 index e99de6c..325cb9c 100644 --- a/templates/wireguard-ui-watcher.service.j2 +++ b/templates/wireguard-ui-watcher.service.j2 @@ -4,7 +4,7 @@ After=network.target [Service] 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] RequiredBy=wireguard-ui-watcher.path