mirror of
https://github.com/YunoHost-Apps/friendica_ynh.git
synced 2024-09-03 18:36:14 +02:00
Fix install and upgrade
This commit is contained in:
parent
bccd3aacf1
commit
951871400d
2 changed files with 3 additions and 4 deletions
|
@ -74,7 +74,7 @@ ynh_script_progression --message="Setting up source files..."
|
|||
|
||||
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
||||
# 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"
|
||||
|
||||
# Copy .htaccess-dist to ..htaccess
|
||||
cp -f "$final_path/.htaccess-dist" "$final_path/.htaccess"
|
||||
|
|
|
@ -125,14 +125,13 @@ else
|
|||
|
||||
# Remove the addon directory securely
|
||||
ynh_secure_remove "$final_path/addon"
|
||||
|
||||
# Remove addon
|
||||
ynh_secure_remove "$final_path/addon"
|
||||
|
||||
# Download, check integrity, uncompress and patch addons
|
||||
ynh_setup_source --dest_dir="$final_path/addon" --source_id="addons"
|
||||
|
||||
# Restore the smarty3 folder
|
||||
cp -a "$tmpdir/view/smarty3" "${final_path}"
|
||||
ynh_secure_remove "$tmpdir"
|
||||
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue