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

Test variable Spotify_user or not

This commit is contained in:
magikcypress 2017-03-08 14:38:38 +01:00
parent 0adcc8ab0e
commit 757bb73332

View file

@ -57,7 +57,7 @@ sudo apt-get install -y mopidy
ip_local=$(hostname -I | awk '{ print $1 }')
sudo sed -i "s@__IPLOCAL__@$ip_local@g" ../conf/mopidy.conf
if [ -n "$spotify_user" ];
if [ $spotify_user ];
then
# sudo sed -i '/[spotify]/a enabled = true' ../conf/mopidy.conf
sudo sed -i "s@__USER_SPOTIFY__@$spotify_user@g" ../conf/mopidy.conf
@ -71,7 +71,7 @@ else
sudo sed -i "s@__SECRET_SPOTIFY__@@g" ../conf/mopidy.conf
fi
if [ -n "$soundcloud_id" ];
if [ $soundcloud_id ];
then
sudo sed -i "s@__SOUNDCLOUD__@$soundcloud_id@g" ../conf/mopidy.conf
else