mirror of
https://github.com/YunoHost-Apps/friendica_ynh.git
synced 2024-09-03 18:36:14 +02:00
install: use new commit variables
This commit is contained in:
parent
573615287b
commit
3ce0f20994
1 changed files with 5 additions and 1 deletions
|
@ -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_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
|
||||||
# 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 $version_commit
|
||||||
|
|
||||||
# Copy .htaccess-dist to ..htaccess
|
# Copy .htaccess-dist to ..htaccess
|
||||||
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 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_version_commit
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
|
|
Loading…
Add table
Reference in a new issue