From 3ce0f209944063874377bf8f6670cc4c9815918d Mon Sep 17 00:00:00 2001 From: Roman Kupriyanov Date: Sat, 17 Jul 2021 01:06:44 +0300 Subject: [PATCH] install: use new commit variables --- scripts/install | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 7cf976f..9816dd0 100644 --- a/scripts/install +++ b/scripts/install @@ -73,14 +73,18 @@ ynh_mysql_setup_db --db_user=$db_user --db_name=$db_name ynh_script_progression --message="Setting up source files..." ynh_app_setting_set --app=$app --key=final_path --value=$final_path -# 1- Clone stable repo +# 1 - Clone stable repo git clone https://github.com/friendica/friendica.git -b stable "$final_path" +# Reset branch to the level of update we needed +git reset --hard $version_commit # Copy .htaccess-dist to ..htaccess cp -f "$final_path/.htaccess-dist" "$final_path/.htaccess" # 2 - Clone addons repo 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_version_commit #================================================= # NGINX CONFIGURATION