mirror of
https://framagit.org/YunoHost-Apps/gitea_ynh.git
synced 2024-11-21 18:41:35 +01:00
Update upgrade
This commit is contained in:
parent
e7380aeebc
commit
d30547b101
@ -25,6 +25,14 @@ lfs_key=$(ynh_app_setting_get --app=$app --key=lfs_key)
|
|||||||
port=$(ynh_app_setting_get --app=$app --key=web_port)
|
port=$(ynh_app_setting_get --app=$app --key=web_port)
|
||||||
upstream_version=$(ynh_app_setting_get --app=$app --key=upstream_version)
|
upstream_version=$(ynh_app_setting_get --app=$app --key=upstream_version)
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# STOP SYSTEMD SERVICE
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Stopping a systemd service..." --weight=1
|
||||||
|
|
||||||
|
# We stop the service before to set ynh_clean_setup
|
||||||
|
ynh_systemd_action --service_name=$app --action="stop"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
||||||
#=================================================
|
#=================================================
|
||||||
@ -43,14 +51,6 @@ fi
|
|||||||
# Exit if an error occurs during the execution of the script
|
# Exit if an error occurs during the execution of the script
|
||||||
ynh_abort_if_errors
|
ynh_abort_if_errors
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# STOP SYSTEMD SERVICE
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Stopping a systemd service..." --weight=1
|
|
||||||
|
|
||||||
# We stop the service before to set ynh_clean_setup
|
|
||||||
ynh_systemd_action --service_name=$app --action="stop"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# ENSURE DOWNWARD COMPATIBILITY
|
# ENSURE DOWNWARD COMPATIBILITY
|
||||||
#=================================================
|
#=================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user