1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/navidrome_ynh.git synced 2024-09-03 19:46:30 +02:00
This commit is contained in:
Éric Gaspar 2023-11-17 10:03:21 +01:00
parent 05f4b2aa87
commit 8e0075eb92
2 changed files with 5 additions and 5 deletions

View file

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

View file

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