fix deploy and bump to 0.4.0

This commit is contained in:
ace
2023-03-10 16:18:46 +03:00
parent 352428ce8c
commit fd0c675ce6
8 changed files with 33 additions and 27 deletions

View File

@ -1,4 +1,4 @@
{
"username": "{{ wireguard_ui_env['WGUI_USERNAME'] }}",
"password": "{{ wireguard_ui_env['WGUI_PASSWORD'] }}"
"username": "{{ wireguard_ui_combined_env['WGUI_USERNAME'] }}",
"password": "{{ wireguard_ui_combined_env['WGUI_PASSWORD'] }}"
}

View File

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

View File

@ -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('.') | first }}.service
ExecStart=/usr/bin/systemctl restart wg-quick@{{ wireguard_ui_combined_env['WGUI_CONFIG_FILE_PATH'] | basename | split('.') | first }}.service
[Install]
RequiredBy={{ wireguard_ui_watcher_systemd_path_unit_name }}