From 72b83e3e3d5f381ed15e1097cea52c51f2f34857 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 3 Nov 2020 20:29:32 +0100 Subject: [PATCH] Fix install --- scripts/install | 7 +++---- scripts/upgrade | 5 +---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/scripts/install b/scripts/install index 77def72..b73b5a7 100644 --- a/scripts/install +++ b/scripts/install @@ -201,11 +201,10 @@ yunohost service add $app --description "$app daemon for Bitwarden" --log "/var/ #================================================= ynh_script_progression --message="Starting a systemd service..." -ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" -ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" - # Start a systemd service -ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Rocket has launched from" --length=100 +ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="unable to load Private Key" --length=100 + +ynh_systemd_action --service_name=$app --action="restart" --log_path="systemd" --line_match="Rocket has launched from" --length=100 #================================================= # SETUP FAIL2BAN diff --git a/scripts/upgrade b/scripts/upgrade index ac7c8e6..bf5ba06 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -233,10 +233,7 @@ fi #================================================= ynh_script_progression --message="Starting a systemd service..." -ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" -ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" - -ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Rocket has launched from" --length=100 +ynh_systemd_action --service_name=$app --action="restart" --log_path="systemd" --line_match="Rocket has launched from" --length=100 #================================================= # RELOAD NGINX