1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/airsonic_ynh.git synced 2024-09-03 18:06:14 +02:00

Merge pull request #50 from YunoHost-Apps/patch

Fix
This commit is contained in:
Éric Gaspar 2021-05-05 12:46:05 +02:00 committed by GitHub
commit e5a0e5161a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 16 deletions

View file

@ -4,7 +4,6 @@
path="/path" (PATH) path="/path" (PATH)
admin="john" (USER) admin="john" (USER)
is_public=1 (PUBLIC|public=1|private=0) is_public=1 (PUBLIC|public=1|private=0)
port="666" (PORT)
; Checks ; Checks
pkg_linter=1 pkg_linter=1
setup_sub_dir=1 setup_sub_dir=1
@ -16,12 +15,11 @@
upgrade=1 from_commit=72d530415c016b23b6ba62085272957b04d2cca6 upgrade=1 from_commit=72d530415c016b23b6ba62085272957b04d2cca6
backup_restore=1 backup_restore=1
multi_instance=1 multi_instance=1
port_already_use=0
change_url=1 change_url=1
;;; Options ;;; Options
Email= Email=
Notification=none Notification=none
;;; Upgrade options ;;; Upgrade options
; commit=CommitHash ; commit=72d530415c016b23b6ba62085272957b04d2cca6
name=Name and date of the commit. name=Name and date of the commit.
manifest_arg=domain=DOMAIN&path=PATH&admin=USER&language=fr&is_public=1&password=pass&port=666& manifest_arg=domain=DOMAIN&path=PATH&admin=USER&language=fr&is_public=1&password=pass&port=666&

View file

@ -123,9 +123,6 @@ ynh_multimedia_addfolder --source_dir="/home/yunohost.app/$app/Playlists" --dest
# Allow airsonic to write into these directories # Allow airsonic to write into these directories
ynh_multimedia_addaccess $app ynh_multimedia_addaccess $app
# Allow Airsonic to write into these directories
ynh_multimedia_addaccess $app
#================================================= #=================================================
# ENABLE "TRANSCODE" # ENABLE "TRANSCODE"
#================================================= #=================================================
@ -159,11 +156,8 @@ ynh_add_systemd_config
#================================================= #=================================================
ynh_add_config --template="../conf/systemd-sysconfig" --destination="/etc/default/$app" ynh_add_config --template="../conf/systemd-sysconfig" --destination="/etc/default/$app"
# Copy configuration file of airsonic # Copy configuration file of airsonic
cp ../conf/airsonic.properties $final_path/airsonic.properties ynh_add_config --template="../conf/airsonic.properties" --destination="$final_path/airsonic.properties"
# Calculate and store the config file checksum into the app settings
ynh_store_file_checksum --file="$final_path/airsonic.properties"
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION

View file

@ -166,12 +166,8 @@ chown $app: $final_path/transcode
# STORE THE CONFIG FILE CHECKSUM # STORE THE CONFIG FILE CHECKSUM
#================================================= #=================================================
ynh_backup_if_checksum_is_different --file="$final_path/airsonic.properties" # Copy configuration file of airsonic
ynh_add_config --template="../conf/airsonic.properties" --destination="$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"
#================================================= #=================================================
# SETUP LOGROTATE # SETUP LOGROTATE