From c494891443d5e43f06fae1fe78a0d2b3cadbc4eb Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 2 Apr 2019 16:04:51 +0200 Subject: [PATCH] Switch source --- conf/app.src | 6 ++++++ scripts/install | 2 +- scripts/upgrade | 5 +---- 3 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 conf/app.src diff --git a/conf/app.src b/conf/app.src new file mode 100644 index 0000000..9eb11a5 --- /dev/null +++ b/conf/app.src @@ -0,0 +1,6 @@ +SOURCE_URL=https://github.com/Plume-org/Plume/archive/723d2c4600d2b8c9aabc9a26562553a02616f65d.tar.gz +SOURCE_SUM=42111a6443fa19d0d22e2feed1bb4660fd41584e0066ed3a53b3b3d4ad6340c7 +SOURCE_SUM_PRG=sha256sum +SOURCE_FORMAT=tar.gz +SOURCE_IN_SUBDIR=true +SOURCE_FILENAME= diff --git a/scripts/install b/scripts/install index 709a605..28eb20e 100755 --- a/scripts/install +++ b/scripts/install @@ -101,7 +101,7 @@ ynh_print_info "Setting up source files ..." ynh_app_setting_set $app final_path $final_path # Download, check integrity, uncompress and patch the source from app.src -git clone https://github.com/Plume-org/Plume.git "$final_path/$app" +ynh_setup_source "$final_path/$app" # Create the media directory, where uploads will be stored mkdir $final_path/media diff --git a/scripts/upgrade b/scripts/upgrade index da59565..3c5e5ae 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -29,7 +29,6 @@ secret_key=$(ynh_app_setting_get "$app" secret_key) name=$(ynh_app_setting_get "$app" name) port=$(ynh_app_setting_get "$app" port) - #================================================= # ENSURE DOWNWARD COMPATIBILITY #================================================= @@ -105,9 +104,7 @@ path_url=$(ynh_normalize_url_path $path_url) ynh_print_info "Upgrading source files..." # Download, check integrity, uncompress and patch the source from app.src -git clone --quiet https://github.com/Plume-org/Plume.git "$final_path/upgrade" -cp -a "$final_path/upgrade/." "$final_path/$app/." -rm -r "$final_path/upgrade" +ynh_setup_source "$final_path/$app" #================================================= # NGINX CONFIGURATION