mirror of
https://github.com/YunoHost-Apps/friendica_ynh.git
synced 2024-09-03 18:36:14 +02:00
upgrade: use commit hash to set a specific version
This commit is contained in:
parent
5c47cf151b
commit
51887801b3
1 changed files with 6 additions and 2 deletions
|
@ -122,13 +122,17 @@ else
|
||||||
ynh_secure_remove "$final_path"
|
ynh_secure_remove "$final_path"
|
||||||
|
|
||||||
# 1 - Clone stable repo
|
# 1 - Clone stable repo
|
||||||
$git clone https://github.com/friendica/friendica.git -b stable "$final_path"
|
git clone https://github.com/friendica/friendica.git -b stable "$final_path"
|
||||||
|
# Reset branch to the level of update we needed
|
||||||
|
git reset --hard $update_commit
|
||||||
|
|
||||||
# Remove the addon directory securely
|
# Remove the addon directory securely
|
||||||
ynh_secure_remove "$final_path/addon"
|
ynh_secure_remove "$final_path/addon"
|
||||||
|
|
||||||
# 2 - Clone addons repo
|
# 2 - Clone addons repo
|
||||||
git clone https://github.com/friendica/friendica-addons.git -b stable "$final_path/addon"
|
git clone https://github.com/friendica/friendica-addons.git -b stable "$final_path/addon"
|
||||||
|
# Reset addons branch to the level of update we needed
|
||||||
|
git reset --hard $addons_update_commit
|
||||||
|
|
||||||
# Restore the smarty3 folder
|
# Restore the smarty3 folder
|
||||||
cp -a "$tmpdir/view/smarty3" "$final_path/view/smarty3"
|
cp -a "$tmpdir/view/smarty3" "$final_path/view/smarty3"
|
||||||
|
|
Loading…
Reference in a new issue