1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mopidy_ynh.git synced 2024-09-03 19:46:21 +02:00

[fix] upgrade file && change spotify configuration

This commit is contained in:
magikcypress 2017-06-16 15:35:46 +02:00
parent b8722a63e1
commit b001c8d64d
No known key found for this signature in database
GPG key ID: 3B3C7CD61957AC9A
2 changed files with 6 additions and 6 deletions

View file

@ -116,13 +116,11 @@ excluded_file_extensions =
[spotify]
username = __USER_SPOTIFY__
password = __PWD_SPOTIFY__
client_id = __ID_SPOTIFY__
client_secret = __SECRET_SPOTIFY__
#bitrate = 320
#timeout = 10
#cache_dir = $XDG_CACHE_DIR/mopidy/spotify
[spotify_web]
client_id = __ID_SPOTIFY__
client_secret = __SECRET_SPOTIFY__
[soundcloud]
auth_token = __SOUNDCLOUD__

View file

@ -13,8 +13,10 @@ source /usr/share/yunohost/helpers
domain=$(ynh_app_setting_get "$app" domain)
# Copy the app files
final_path="/var/www/${app}"
final_path="/opt/${app}"
ynh_backup "$final_path" "sources" 1
# Copy the nginx conf files
ynh_backup "/etc/nginx/conf.d/${domain}.d/${app}.conf" "nginx.conf"
ynh_backup "/etc/nginx/conf.d/${domain}.d/${app}.conf" "nginx.conf"
# Copy service
ynh_backup "/etc/systemd/system/${app}.service" "systemd_${app}.service"