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

Install Mopidy Spotify et Soundcloud

This commit is contained in:
magikcypress 2017-03-08 15:43:43 +01:00
parent 25a0d60ff6
commit c274136434
3 changed files with 20 additions and 9 deletions

View file

@ -63,16 +63,16 @@ port = 6680
zeroconf = Mopidy HTTP server on $hostname zeroconf = Mopidy HTTP server on $hostname
[stream] [stream]
#enabled = true enabled = true
#protocols = protocols =
# http http
# https https
# mms mms
# rtmp rtmp
# rtmps rtmps
# rtsp rtsp
#metadata_blacklist = #metadata_blacklist =
#timeout = 5000 timeout = 5000
[m3u] [m3u]
#enabled = true #enabled = true

View file

@ -58,6 +58,8 @@ sudo wget -q -O /etc/apt/sources.list.d/mopidy.list https://apt.mopidy.com/jessi
# Install Mopidy and all dependencies: # Install Mopidy and all dependencies:
sudo apt-get update sudo apt-get update
sudo apt-get install -y mopidy sudo apt-get install -y mopidy
sudo apt-get install -y mopidy-soundcloud
sudo apt-get install -y mopidy-spotify
# Copy configuration # Copy configuration
ip_local=$(hostname -I | awk '{ print $1 }') ip_local=$(hostname -I | awk '{ print $1 }')
@ -114,6 +116,13 @@ sudo systemctl enable mopidy
sudo systemctl restart mopidy sudo systemctl restart mopidy
sudo systemctl status mopidy sudo systemctl status mopidy
# Copy library.json
sudo cp /root/.local/share/mopidy/local/library.json.gz /var/lib/mopidy/local/
# Running Mopidy again
sudo systemctl restart mopidy
sudo systemctl status mopidy
# Delete directory and file mopidy configuration # Delete directory and file mopidy configuration
# Mopidy create this directory after install # Mopidy create this directory after install
# but this files create a conflit with a mopidy configuration. # but this files create a conflit with a mopidy configuration.

View file

@ -14,6 +14,8 @@ domain=$(ynh_app_setting_get $app domain)
# Remove application # Remove application
sudo apt-get remove --purge -y mopidy sudo apt-get remove --purge -y mopidy
sudo apt-get remove --purge -y mopidy-soundcloud
sudo apt-get remove --purge -y mopidy-spotify
sleep 4 sleep 4
sudo pip uninstall -y mopidy_musicbox_webclient sudo pip uninstall -y mopidy_musicbox_webclient
sleep 4 sleep 4