1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/peertube_ynh.git synced 2024-09-03 19:56:29 +02:00

Start the service before migration

This commit is contained in:
yalh76 2022-01-10 20:47:14 +01:00
parent a593ed293a
commit 5927cfb968

View file

@ -251,6 +251,22 @@ pushd "$final_path"
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn install --production --pure-lockfile ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn install --production --pure-lockfile
popd popd
#=================================================
# SETUP SYSTEMD
#=================================================
ynh_script_progression --message="Upgrading systemd configuration..."
# Create a dedicated systemd config
ynh_add_systemd_config
#=================================================
# START SYSTEMD SERVICE
#=================================================
ynh_script_progression --message="Starting a systemd service..."
# Start a systemd service
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="HTTP server listening on localhost"
#================================================= #=================================================
# INSTALL LDAP PLUGIN # INSTALL LDAP PLUGIN
#================================================= #=================================================
@ -272,12 +288,12 @@ if ynh_compare_current_package_version --comparison lt --version 4.0.0~ynh1; the
fi fi
#================================================= #=================================================
# SETUP SYSTEMD # STOP SYSTEMD SERVICE
#================================================= #=================================================
ynh_script_progression --message="Upgrading systemd configuration..." ynh_script_progression --message="Stopping a systemd service..."
# Create a dedicated systemd config # Stop a systemd service
ynh_add_systemd_config ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd"
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION