diff --git a/scripts/install b/scripts/install index 9816dd0..f86a43a 100644 --- a/scripts/install +++ b/scripts/install @@ -76,7 +76,9 @@ 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" # Reset branch to the level of update we needed -git reset --hard $version_commit +pushd "$final_path" + git reset --hard $version_commit +popd # Copy .htaccess-dist to ..htaccess cp -f "$final_path/.htaccess-dist" "$final_path/.htaccess" @@ -84,7 +86,9 @@ 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 +pushd "$final_path" + git reset --hard $addons_version_commit +popd #================================================= # NGINX CONFIGURATION