From b19e90561c0e76aeb3352cf06a55707789f9fd94 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Fri, 1 Jan 2021 13:54:05 +0100 Subject: [PATCH] Add test_status for wireguard service --- scripts/install | 2 +- scripts/restore | 2 +- scripts/upgrade | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 7ca753a..60ec5e7 100644 --- a/scripts/install +++ b/scripts/install @@ -176,7 +176,7 @@ ynh_use_logrotate #================================================= ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 -yunohost service add wireguard --description "WireGuard" --needs_exposed_ports $port_wg +yunohost service add wireguard --description "WireGuard" --needs_exposed_ports $port_wg --test_status "wg show | grep wg0" yunohost service add wireguard_ui --description "WireGuard UI" --log "/var/log/$app/ui.log" ### Additional options starting with 3.8: diff --git a/scripts/restore b/scripts/restore index 912ce2a..cf2939c 100644 --- a/scripts/restore +++ b/scripts/restore @@ -103,7 +103,7 @@ systemctl enable --quiet wireguard.path #================================================= ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 -yunohost service add wireguard --description "WireGuard" --needs_exposed_ports $port_wg +yunohost service add wireguard --description "WireGuard" --needs_exposed_ports $port_wg --test_status "wg show | grep wg0" yunohost service add wireguard_ui --description "WireGuard UI" --log "/var/log/$app/ui.log" #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 5d0d816..88152f6 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -164,7 +164,7 @@ ynh_use_logrotate --non-append #================================================= ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 -yunohost service add wireguard --description "WireGuard" --needs_exposed_ports "$port_wg" +yunohost service add wireguard --description "WireGuard" --needs_exposed_ports "$port_wg" --test_status "wg show | grep wg0" yunohost service add wireguard_ui --description "WireGuard UI" --log "/var/log/$app/ui.log" #=================================================