mirror of
https://github.com/YunoHost-Apps/navidrome_ynh.git
synced 2024-09-03 19:46:30 +02:00
Fix
This commit is contained in:
parent
4944036061
commit
d4b17d421c
2 changed files with 9 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue