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