1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/friendica_ynh.git synced 2024-09-03 18:36:14 +02:00

upgrade: fix upgrade using git

This commit is contained in:
Roman Kupriyanov 2021-07-17 02:02:27 +03:00 committed by GitHub
parent 38c471b920
commit 07ccfdb4bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -101,13 +101,15 @@ then
# Update through git
pushd "$final_path"
git fetch
git checkout stable $version_commit
git checkout stable
git pull
git reset --hard $version_commit
popd
pushd "$final_path/addon"
git fetch
git checkout stable $addons_version_commit
git checkout stable
git pull
git reset --hard $addons_version_commit
popd
# If git is not present upgrade through manual method
else