diff --git a/scripts/change_url b/scripts/change_url index 291aea2..78618c4 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -21,7 +21,7 @@ fi #================================================= ynh_script_progression --message="Stopping a systemd service..." --time --weight=1 -ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app/$app.log" +ynh_systemd_action --service_name=$app --action=stop --log_path="systemd" --line_match="Ghost has shut down" --timeout=60 #================================================= # MODIFY URL IN NGINX CONF @@ -46,7 +46,7 @@ echo "$(jq -r --arg YNH_APP_NEW_DOMAIN $YNH_APP_NEW_DOMAIN --arg YNH_APP_NEW_PAT #================================================= ynh_script_progression --message="Starting a systemd service..." --time --weight=1 -ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" +ynh_systemd_action --service_name=$app --action=start --log_path="systemd" --line_match="Ghost booted" --timeout=60 #================================================= # END OF SCRIPT diff --git a/scripts/install b/scripts/install index cfdf894..70ce8c2 100644 --- a/scripts/install +++ b/scripts/install @@ -87,7 +87,7 @@ yunohost service add $app --description="$app daemon for Ghost" --log="$install_ ynh_script_progression --message="Starting a systemd service..." # Start a systemd service -ynh_systemd_action --service_name=$app --action="start" --line_match="Ghost booted" --timeout=60 +ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Ghost booted" --timeout=60 #================================================= # END OF SCRIPT diff --git a/scripts/restore b/scripts/restore index c958b5c..fb722c7 100755 --- a/scripts/restore +++ b/scripts/restore @@ -72,7 +72,7 @@ yunohost service add $app --description="$app daemon for Ghost" --log="$install_ #================================================= ynh_script_progression --message="Starting a systemd service..." -ynh_systemd_action --service_name=$app --action=start --line_match="Ghost booted" --timeout=60 +ynh_systemd_action --service_name=$app --action=start --log_path="systemd" --line_match="Ghost booted" --timeout=60 #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index 35f9464..27776cc 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -29,7 +29,7 @@ fi #================================================= ynh_script_progression --message="Stopping a systemd service..." -ynh_systemd_action --service_name=$app --action=stop +ynh_systemd_action --service_name=$app --action=stop --log_path="systemd" --line_match="Ghost has shut down" --timeout=60 #================================================= # UPGRADE DEPENDENCIES @@ -157,7 +157,7 @@ yunohost service add $app --description="$app daemon for Ghost" --log="$install_ #================================================= ynh_script_progression --message="Starting a systemd service..." -ynh_systemd_action --service_name=$app --action=start --line_match="Ghost booted" --timeout=60 +ynh_systemd_action --service_name=$app --action=start --log_path="systemd" --line_match="Ghost booted" --timeout=60 #================================================= # END OF SCRIPT