1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/monica_ynh.git synced 2024-09-03 19:46:23 +02:00

Fixed upgrade from previous commits

This commit is contained in:
anmol26s 2021-03-06 20:20:42 +05:30
parent 0c72bd4317
commit d3def9ae0b
2 changed files with 8 additions and 11 deletions

View file

@ -113,13 +113,6 @@ ynh_script_progression --message="Restoring the cron file..."
ynh_restore_file --origin_path="/etc/cron.d/$app" ynh_restore_file --origin_path="/etc/cron.d/$app"
#=================================================
# RESTORE THE CRON FILE
#=================================================
ynh_script_progression --message="Restoring the cron file..."
ynh_restore_file --origin_path="/etc/cron.d/$app"
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION
#================================================= #=================================================

View file

@ -100,10 +100,14 @@ then
ynh_script_progression --message="Upgrading source files..." ynh_script_progression --message="Upgrading source files..."
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
pushd "$final_path" if [ `cd $final_path && git rev-parse --is-inside-work-tree` ]; then
git fetch pushd "$final_path"
git checkout tags/$version git fetch
popd git checkout tags/$version
popd
else
ynh_setup_source --dest_dir="$final_path"
fi
fi fi
ynh_app_setting_set --app=$app --key=version --value=$version ynh_app_setting_set --app=$app --key=version --value=$version