diff --git a/scripts/change_url b/scripts/change_url index 3536590..70da1ad 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -35,7 +35,7 @@ path_url="$new_path" ynh_add_config --template="navidrome.toml" --destination="/var/lib/$app/navidrome.toml" chmod 600 "/var/lib/$app/navidrome.toml" -chown -R $app:$app "/var/lib/$app/navidrome.toml" +chown -R $app:$app "/var/lib/$app" #================================================= # GENERIC FINALISATION diff --git a/scripts/install b/scripts/install index c961961..b9ab0e7 100644 --- a/scripts/install +++ b/scripts/install @@ -42,7 +42,7 @@ ynh_script_progression --message="Setting up source files..." --weight=4 # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$install_dir" -mkdir -p "$config_path" +mkdir -p "/var/lib/$app" chmod -R o-rwx "$install_dir" chown -R $app:$app "$install_dir" @@ -75,10 +75,10 @@ ynh_multimedia_build_main_dir ynh_script_progression --message="Adding a configuration file..." --weight=1 # Main config File -ynh_add_config --template="navidrome.toml" --destination="$config_path/navidrome.toml" +ynh_add_config --template="navidrome.toml" --destination="/var/lib/$app/navidrome.toml" -chmod 600 "$config_path/navidrome.toml" -chown -R $app:$app "$config_path" +chmod 600 "/var/lib/$app/navidrome.toml" +chown -R $app:$app "/var/lib/$app/navidrome.toml" #================================================= # START SYSTEMD SERVICE