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:
ericgaspar 2021-04-10 10:59:11 +02:00
parent 4944036061
commit d4b17d421c
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 9 additions and 6 deletions

View file

@ -109,14 +109,16 @@ ynh_script_progression --message="Modifying a config file..." --weight=1
config_path="/var/lib/$app"
path_url="$new_path"
cp ../conf/navidrome.toml "$config_path/navidrome.toml"
# cp ../conf/navidrome.toml "$config_path/navidrome.toml"
# Main config File
ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$config_path/navidrome.toml"
ynh_replace_string --match_string="__PATH_URL__" --replace_string="$path_url" --target_file="$config_path/navidrome.toml"
ynh_replace_string --match_string="__CONFIG_PATH__" --replace_string="$config_path" --target_file="$config_path/navidrome.toml"
# # Main config File
# ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$config_path/navidrome.toml"
# ynh_replace_string --match_string="__PATH_URL__" --replace_string="$path_url" --target_file="$config_path/navidrome.toml"
# ynh_replace_string --match_string="__CONFIG_PATH__" --replace_string="$config_path" --target_file="$config_path/navidrome.toml"
ynh_store_file_checksum --file="$config_path/navidrome.toml"
# ynh_store_file_checksum --file="$config_path/navidrome.toml"
ynh_add_config --template="../conf/navidrome.toml" --destination="$config_path/navidrome.toml"
#=================================================
# GENERIC FINALISATION

View file

@ -109,6 +109,7 @@ ynh_script_progression --message="Configuring a systemd service..." --weight=2
config_path="/var/lib/$app"
# Uncomment when there is new options added upstream
#ynh_add_config --template="../conf/navidrome.toml" --destination="$config_path/navidrome.toml"
# Create a dedicated systemd config