mirror of
https://github.com/YunoHost-Apps/navidrome_ynh.git
synced 2024-09-03 19:46:30 +02:00
preserve config file
This commit is contained in:
parent
503e032291
commit
052f93f01e
1 changed files with 7 additions and 7 deletions
|
@ -115,7 +115,7 @@ then
|
|||
ynh_secure_remove --file=$final_path
|
||||
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$final_path" --source_id=$YNH_ARCH
|
||||
ynh_setup_source --dest_dir="$final_path" --source_id=$YNH_ARCH --keep="$config_path/navidrome.toml"
|
||||
fi
|
||||
|
||||
chmod 750 "$final_path"
|
||||
|
@ -140,15 +140,15 @@ ynh_add_nginx_config
|
|||
#=================================================
|
||||
# UPDATE A CONFIG FILE
|
||||
#=================================================
|
||||
ynh_script_progression --message="Updating a configuration file..."
|
||||
# ynh_script_progression --message="Updating a configuration file..."
|
||||
|
||||
config_path="/var/lib/$app"
|
||||
# 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"
|
||||
# # Uncomment when there is new options added upstream
|
||||
# ynh_add_config --template="../conf/navidrome.toml" --destination="$config_path/navidrome.toml"
|
||||
|
||||
chmod 600 "$config_path/navidrome.toml"
|
||||
chown -R $app:$app "$config_path"
|
||||
# chmod 600 "$config_path/navidrome.toml"
|
||||
# chown -R $app:$app "$config_path"
|
||||
|
||||
#=================================================
|
||||
# SETUP SYSTEMD
|
||||
|
|
Loading…
Add table
Reference in a new issue