1
0
Fork 0
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:
Éric Gaspar 2022-07-06 11:54:34 +02:00
parent 503e032291
commit 052f93f01e
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

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