From 96e82840fb315528475bdb77de7f6db1d4b42456 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 31 Oct 2020 14:33:19 +0100 Subject: [PATCH] Fixing sources --- scripts/install | 4 +++- scripts/upgrade | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index ac40ce7..d7b43a5 100644 --- a/scripts/install +++ b/scripts/install @@ -87,7 +87,9 @@ ynh_script_progression --message="Setting up source files..." ynh_app_setting_set --app=$app --key=final_path --value=$final_path # Download, check integrity, uncompress and patch the source from app.src git clone $source $final_path -git checkout $COMMIT +pushd "$final_path" + git checkout $COMMIT +popd #================================================= # NGINX CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index 48a2a75..68df4da 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -88,8 +88,10 @@ then ynh_script_progression --message="Upgrading source files..." # Download, check integrity, uncompress and patch the source from app.src - git pull - git checkout $COMMIT + pushd "$final_path" + git pull + git checkout $COMMIT + popd fi #=================================================