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

Use repo url variables

This commit is contained in:
Roman Kupriyanov 2021-07-21 02:22:54 +03:00 committed by GitHub
parent 8f999c726b
commit c78be1309b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,7 +80,7 @@ ynh_script_progression --message="Setting up source files..." --weight=5
ynh_app_setting_set --app=$app --key=final_path --value=$final_path ynh_app_setting_set --app=$app --key=final_path --value=$final_path
# 1 - Clone stable repo # 1 - Clone stable repo
git clone --quiet https://github.com/friendica/friendica.git -b stable "$final_path" git clone --quiet $repo_url -b stable "$final_path"
# Reset branch to the level of update we needed # Reset branch to the level of update we needed
pushd "$final_path" pushd "$final_path"
git reset --hard --quiet $version_commit git reset --hard --quiet $version_commit
@ -90,7 +90,7 @@ popd
cp -f "$final_path/.htaccess-dist" "$final_path/.htaccess" cp -f "$final_path/.htaccess-dist" "$final_path/.htaccess"
# 2 - Clone addons repo # 2 - Clone addons repo
git clone --quiet https://github.com/friendica/friendica-addons.git -b stable "$final_path/addon" git clone --quiet $addons_repo_url -b stable "$final_path/addon"
# Reset addons branch to the level of update we needed # Reset addons branch to the level of update we needed
pushd "$final_path/addon" pushd "$final_path/addon"
git reset --hard --quiet $addons_version_commit git reset --hard --quiet $addons_version_commit