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:
parent
0c72bd4317
commit
d3def9ae0b
2 changed files with 8 additions and 11 deletions
|
@ -113,13 +113,6 @@ ynh_script_progression --message="Restoring the cron file..."
|
|||
|
||||
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
|
||||
#=================================================
|
||||
|
|
|
@ -100,10 +100,14 @@ then
|
|||
ynh_script_progression --message="Upgrading source files..."
|
||||
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
pushd "$final_path"
|
||||
git fetch
|
||||
git checkout tags/$version
|
||||
popd
|
||||
if [ `cd $final_path && git rev-parse --is-inside-work-tree` ]; then
|
||||
pushd "$final_path"
|
||||
git fetch
|
||||
git checkout tags/$version
|
||||
popd
|
||||
else
|
||||
ynh_setup_source --dest_dir="$final_path"
|
||||
fi
|
||||
|
||||
fi
|
||||
ynh_app_setting_set --app=$app --key=version --value=$version
|
||||
|
|
Loading…
Add table
Reference in a new issue