diff --git a/scripts/install b/scripts/install index ce4b4ee..c7d337d 100755 --- a/scripts/install +++ b/scripts/install @@ -147,9 +147,11 @@ fi #================================================= # RELOAD NGINX #================================================= -ynh_print_info "Starting wekan ..." -systemctl restart $app + systemctl reload nginx -ynh_print_info "Waiting for wekan to be up ..." -sleep 20 +#================================================= +# START SERVICE +#================================================= + +ynh_systemd_action --action=start --service_name=$app --log_path="systemd" --line_match="Finishing add-custom-html-before-body-end migration" diff --git a/scripts/restore b/scripts/restore index 8d13fc2..a70004d 100644 --- a/scripts/restore +++ b/scripts/restore @@ -107,5 +107,11 @@ fi #================================================= # RELOAD NGINX #================================================= -systemctl restart $app + systemctl reload nginx + +#================================================= +# START SERVICE +#================================================= + +ynh_systemd_action --action=start --service_name=$app --log_path="systemd" diff --git a/scripts/upgrade b/scripts/upgrade index 5854c49..bc6d4dd 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -114,5 +114,11 @@ popd #================================================= # RELOAD NGINX #================================================= -systemctl restart $app + systemctl reload nginx + +#================================================= +# START SERVICE +#================================================= + +ynh_systemd_action --action=start --service_name=$app --log_path="systemd"