mirror of
https://github.com/YunoHost-Apps/peertube-search-index_ynh.git
synced 2024-09-03 19:56:30 +02:00
Fix upgrade
This commit is contained in:
parent
a1304d33b6
commit
060bc63137
2 changed files with 5 additions and 4 deletions
|
@ -86,9 +86,9 @@ ynh_script_progression --message="Setting up source files..."
|
||||||
|
|
||||||
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
git clone $source $final_path
|
git clone $source $final_path --quiet
|
||||||
pushd "$final_path"
|
pushd "$final_path"
|
||||||
git checkout $COMMIT
|
git checkout $COMMIT --quiet
|
||||||
popd
|
popd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -89,8 +89,9 @@ then
|
||||||
|
|
||||||
# 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"
|
pushd "$final_path"
|
||||||
git pull
|
git checkout master
|
||||||
git checkout $COMMIT
|
git pull --quiet
|
||||||
|
git checkout $COMMIT --quiet
|
||||||
popd
|
popd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue