From 06736f8aef25ef4adad1bf481872c4e83f2a6614 Mon Sep 17 00:00:00 2001 From: poka Date: Mon, 15 Aug 2022 00:08:03 +0200 Subject: [PATCH] fix install --- install.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index c7d5540..b80ddf3 100755 --- a/install.sh +++ b/install.sh @@ -4,6 +4,13 @@ MP="`dirname \"$0\"`" # relative MP="`( cd \"$MP\" && pwd )`" # absolutized and normalized cd $MP + +sudo apt install -y lame build-essential libffi-dev jq curl +wget -q -O - https://apt.mopidy.com/mopidy.gpg | sudo apt-key add - #add mopidy's libspotify repository +sudo wget -q -O /etc/apt/sources.list.d/mopidy.list https://apt.mopidy.com/stretch.list #valid for Debian Stretch. +sudo apt update && sudo apt install libspotify12 libspotify-dev #install libspotify from mopidy's repository + + if [[ ! $(which pyenv) ]]; then echo "pyenv installation..." curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash @@ -21,10 +28,6 @@ if [[ ! $(which python) ]]; then exit 0 fi -sudo apt install -y lame build-essential libffi-dev jq curl -wget -q -O - https://apt.mopidy.com/mopidy.gpg | sudo apt-key add - #add mopidy's libspotify repository -sudo wget -q -O /etc/apt/sources.list.d/mopidy.list https://apt.mopidy.com/stretch.list #valid for Debian Stretch. -sudo apt update && sudo apt install libspotify12 libspotify-dev #install libspotify from mopidy's repository mkdir -p lib [[ ! -f .env ]] && cp .env.template .env && chmod 600 .env