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/restore b/scripts/restore index 23da5b3..c52b445 100755 --- a/scripts/restore +++ b/scripts/restore @@ -15,6 +15,7 @@ source /usr/share/yunohost/helpers #================================================= ynh_clean_setup () { + read -p "key" ynh_clean_check_starting } # Exit if an error occurs during the execution of the script @@ -103,13 +104,6 @@ ynh_restore_file "/etc/systemd/system/$app.service" systemctl enable $app.service systemctl daemon-reload -#Fix Your search index is locked. -export PATH="$PATH:$final_path/.cargo/bin:$final_path/.local/bin:/usr/local/sbin" - -pushd $final_path/$app - sudo -u "$app" env PATH=$PATH plm search unlock -popd - #================================================= # CREATE LOG FOLDER #================================================= 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