mirror of
https://github.com/YunoHost-Apps/nomad_ynh.git
synced 2024-09-03 19:55:53 +02:00
remove: call nomad node drain with timeout, because it can hang...
This commit is contained in:
parent
90da06cc1e
commit
f98cc337c9
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue