From 3084a0e59c04d8c65e127196c349c965c1393fe0 Mon Sep 17 00:00:00 2001 From: ace Date: Wed, 13 Jul 2022 15:51:36 +0300 Subject: [PATCH] fix templates --- templates/wireguard-ui-watcher.service.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/wireguard-ui-watcher.service.j2 b/templates/wireguard-ui-watcher.service.j2 index 9b9578f..557d87c 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_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('.') | first }}.service [Install] RequiredBy={{ wireguard_ui_watcher_systemd_path_unit_name }}