From e31ed8496e5b646cadcdb0d747a64b3138add911 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 24 Mar 2021 08:45:17 +0100 Subject: [PATCH] Fix --- scripts/install | 3 +-- scripts/restore | 2 +- scripts/upgrade | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 683c2bb..bf61fe0 100644 --- a/scripts/install +++ b/scripts/install @@ -110,7 +110,6 @@ mkdir -p "$config_path" # Main config File ynh_add_config --template="../conf/navidrome.toml" --destination="$config_path/navidrome.toml" -ynh_store_file_checksum --file="$config_path/navidrome.toml" #================================================= # SETUP SYSTEMD @@ -131,7 +130,7 @@ ynh_script_progression --message="Securing files and directories..." --weight=1 chown -R $app:$app "$final_path" chmod -R o-rwx "$final_path" chown -R $app:$app "$config_path" -chmod 600 "$config_path/navidrome.toml" +chmod 600 "/var/lib/$app/navidrome.toml" #================================================= # INTEGRATE SERVICE IN YUNOHOST diff --git a/scripts/restore b/scripts/restore index 606ae3f..f77499f 100644 --- a/scripts/restore +++ b/scripts/restore @@ -80,7 +80,7 @@ ynh_script_progression --message="Restoring user rights..." chown -R $app:$app "$final_path" chmod -R o-rwx "$final_path" chown -R $app:$app "/var/lib/$app" -chmod 600 "$config_path/navidrome.toml" +chmod 600 "/var/lib/$app/navidrome.toml" #================================================= # SPECIFIC RESTORATION diff --git a/scripts/upgrade b/scripts/upgrade index e7ce57d..d9085d8 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -137,7 +137,7 @@ ynh_script_progression --message="Securing files and directories..." chown -R $app:$app "$final_path" chmod -R o-rwx "$final_path" chown -R $app:$app "$config_path" -chmod 600 "$config_path/navidrome.toml" +chmod 600 "/var/lib/$app/navidrome.toml" #================================================= # INTEGRATE SERVICE IN YUNOHOST