1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/plume_ynh.git synced 2024-09-03 20:15:54 +02:00

Merge pull request #35 from YunoHost-Apps/testing

Switch source to tar.gz
This commit is contained in:
yalh76 2019-04-07 19:31:21 +02:00 committed by GitHub
commit 980c09f805
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 12 deletions

6
conf/app.src Normal file
View file

@ -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=

View file

@ -101,7 +101,7 @@ ynh_print_info "Setting up source files ..."
ynh_app_setting_set $app final_path $final_path ynh_app_setting_set $app final_path $final_path
# Download, check integrity, uncompress and patch the source from app.src # 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 # Create the media directory, where uploads will be stored
mkdir $final_path/media mkdir $final_path/media

View file

@ -15,6 +15,7 @@ source /usr/share/yunohost/helpers
#================================================= #=================================================
ynh_clean_setup () { ynh_clean_setup () {
read -p "key"
ynh_clean_check_starting ynh_clean_check_starting
} }
# Exit if an error occurs during the execution of the script # 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 enable $app.service
systemctl daemon-reload 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 # CREATE LOG FOLDER
#================================================= #=================================================

View file

@ -29,7 +29,6 @@ secret_key=$(ynh_app_setting_get "$app" secret_key)
name=$(ynh_app_setting_get "$app" name) name=$(ynh_app_setting_get "$app" name)
port=$(ynh_app_setting_get "$app" port) port=$(ynh_app_setting_get "$app" port)
#================================================= #=================================================
# ENSURE DOWNWARD COMPATIBILITY # ENSURE DOWNWARD COMPATIBILITY
#================================================= #=================================================
@ -105,9 +104,7 @@ path_url=$(ynh_normalize_url_path $path_url)
ynh_print_info "Upgrading source files..." ynh_print_info "Upgrading source files..."
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
git clone --quiet https://github.com/Plume-org/Plume.git "$final_path/upgrade" ynh_setup_source "$final_path/$app"
cp -a "$final_path/upgrade/." "$final_path/$app/."
rm -r "$final_path/upgrade"
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION