From 82a2dbbb04d59bc162efd52e9d263444459ac23d Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 4 Aug 2020 00:27:51 +0200 Subject: [PATCH] back to git --- scripts/_common.sh | 2 ++ scripts/install | 2 +- scripts/upgrade | 4 +++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index a611f99..c0faaa3 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -10,6 +10,8 @@ pkg_dependencies="" python_version=2.7.18 +source="https://github.com/CouchPotato/CouchPotatoServer" + #================================================= # PERSONAL HELPERS #================================================= diff --git a/scripts/install b/scripts/install index a54ed0e..0d7cea4 100644 --- a/scripts/install +++ b/scripts/install @@ -85,7 +85,7 @@ 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 -ynh_setup_source --dest_dir="$final_path" +git clone $source $final_path #================================================= # NGINX CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index 8037451..19b6e49 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -111,7 +111,9 @@ then ynh_script_progression --message="Upgrading source files..." # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$final_path" + pushd $final_path + git pull + popd fi #=================================================