1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gitlab-runner_ynh.git synced 2024-09-03 19:15:58 +02:00

Update upgrade

This commit is contained in:
Éric Gaspar 2023-12-22 17:12:26 +01:00
parent eb8cb13997
commit 4e3426e9aa

View file

@ -20,7 +20,7 @@ upgrade_type=$(ynh_check_app_version_changed)
#================================================= #=================================================
# ENSURE DOWNWARD COMPATIBILITY # ENSURE DOWNWARD COMPATIBILITY
#================================================= #=================================================
ynh_script_progression --message="Ensuring downward compatibility..." ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
ynh_app_setting_delete --app=$app --key=$YNH_ARCH ynh_app_setting_delete --app=$app --key=$YNH_ARCH
@ -30,10 +30,10 @@ ynh_app_setting_delete --app=$app --key=$YNH_ARCH
if [ "$upgrade_type" == "UPGRADE_APP" ] if [ "$upgrade_type" == "UPGRADE_APP" ]
then then
ynh_script_progression --message="Upgrading source files..." ynh_script_progression --message="Upgrading source files..." --weight=1
tempdir="$(mktemp -d)" tempdir="$(mktemp -d)"
ynh_setup_source --dest_dir=$tempdir --source_id=$YNH_ARCH ynh_setup_source --dest_dir=$tempdir
dpkg -i $tempdir/gitlab-runner.deb dpkg -i $tempdir/gitlab-runner.deb
ynh_secure_remove --file="$tempdir" ynh_secure_remove --file="$tempdir"
fi fi
@ -41,7 +41,7 @@ fi
#================================================= #=================================================
# INTEGRATE SERVICE IN YUNOHOST # INTEGRATE SERVICE IN YUNOHOST
#================================================= #=================================================
ynh_script_progression --message="Integrating service in YunoHost..." ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add $app yunohost service add $app