From 3a672fa10ace389ff63c82c29145721d020ee36d Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 4 May 2021 22:26:29 +0200 Subject: [PATCH] Fix --- check_process | 4 +--- scripts/install | 8 +------- scripts/upgrade | 8 ++------ 3 files changed, 4 insertions(+), 16 deletions(-) diff --git a/check_process b/check_process index fe9808f..52741e9 100644 --- a/check_process +++ b/check_process @@ -4,7 +4,6 @@ path="/path" (PATH) admin="john" (USER) is_public=1 (PUBLIC|public=1|private=0) - port="666" (PORT) ; Checks pkg_linter=1 setup_sub_dir=1 @@ -16,12 +15,11 @@ upgrade=1 from_commit=72d530415c016b23b6ba62085272957b04d2cca6 backup_restore=1 multi_instance=1 - port_already_use=0 change_url=1 ;;; Options Email= Notification=none ;;; Upgrade options - ; commit=CommitHash + ; commit=72d530415c016b23b6ba62085272957b04d2cca6 name=Name and date of the commit. manifest_arg=domain=DOMAIN&path=PATH&admin=USER&language=fr&is_public=1&password=pass&port=666& diff --git a/scripts/install b/scripts/install index e751eb1..4b0ffdd 100644 --- a/scripts/install +++ b/scripts/install @@ -123,9 +123,6 @@ ynh_multimedia_addfolder --source_dir="/home/yunohost.app/$app/Playlists" --dest # Allow airsonic to write into these directories ynh_multimedia_addaccess $app -# Allow Airsonic to write into these directories -ynh_multimedia_addaccess $app - #================================================= # ENABLE "TRANSCODE" #================================================= @@ -159,11 +156,8 @@ ynh_add_systemd_config #================================================= ynh_add_config --template="../conf/systemd-sysconfig" --destination="/etc/default/$app" - # Copy configuration file of airsonic -cp ../conf/airsonic.properties $final_path/airsonic.properties -# Calculate and store the config file checksum into the app settings -ynh_store_file_checksum --file="$final_path/airsonic.properties" +ynh_add_config --template="../conf/airsonic.properties" --destination="$final_path/airsonic.properties" #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index 2bc7e6c..a4af9c8 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -166,12 +166,8 @@ chown $app: $final_path/transcode # STORE THE CONFIG FILE CHECKSUM #================================================= -ynh_backup_if_checksum_is_different --file="$final_path/airsonic.properties" - -cp ../conf/airsonic.properties $final_path/airsonic.properties - -# Recalculate and store the checksum of the file for the next upgrade. -ynh_store_file_checksum --file="$final_path/airsonic.properties" +# Copy configuration file of airsonic +ynh_add_config --template="../conf/airsonic.properties" --destination="$final_path/airsonic.properties" #================================================= # SETUP LOGROTATE