From f98cc337c92c2deec1ee1fa9889cfa6976e68291 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Wed, 14 Feb 2024 13:30:30 +0100 Subject: [PATCH] remove: call nomad node drain with timeout, because it can hang... --- scripts/remove | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/remove b/scripts/remove index 69a9280..7619b15 100755 --- a/scripts/remove +++ b/scripts/remove @@ -43,7 +43,7 @@ fi #================================================= ynh_script_progression --message="Stopping and removing the systemd service..." --weight=1 -ynh_exec_warn_less nomad node drain -self -enable +ynh_exec_warn_less timeout 25 nomad node drain -self -enable -yes -deadline 20s # Remove the dedicated systemd config ynh_remove_systemd_config @@ -81,7 +81,7 @@ fi if [ "$node_type" == "client" ] then - + if [ $driver_lxc -eq 1 ] then client_lxc_bridge=$(ynh_app_setting_get --app=$app --key=client_lxc_bridge)