Skip to content

Commit

Permalink
Merge pull request #615 from MiczFlor/develop
Browse files Browse the repository at this point in the history
Buster install script bugs #613
  • Loading branch information
MiczFlor authored Oct 23, 2019
2 parents d41f2f2 + 0215706 commit c7faadf
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions scripts/installscripts/buster-install-default.sh
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,6 @@ then
sudo mkdir /home/pi/.config/mopidy
sudo cp /home/pi/RPi-Jukebox-RFID/misc/sampleconfigs/mopidy-etc.sample /etc/mopidy/mopidy.conf
sudo cp /home/pi/RPi-Jukebox-RFID/misc/sampleconfigs/mopidy.sample ~/.config/mopidy/mopidy.conf
echo "plusSpotify" > /home/pi/RPi-Jukebox-RFID/settings/edition
# Change vars to match install config
sudo sed -i 's/%spotify_username%/'"$SPOTIuser"'/' /etc/mopidy/mopidy.conf
sudo sed -i 's/%spotify_password%/'"$SPOTIpass"'/' /etc/mopidy/mopidy.conf
Expand All @@ -656,11 +655,18 @@ then
sudo sed -i 's/%AUDIOiFace%/'"$AUDIOiFace"'/' /etc/mpd.conf
# for $DIRaudioFolders using | as alternate regex delimiter because of the folder path slash
sudo sed -i 's|%DIRaudioFolders%|'"$DIRaudioFolders"'|' /etc/mpd.conf
echo "classic" > /home/pi/RPi-Jukebox-RFID/settings/edition
sudo chown mpd:audio /etc/mpd.conf
sudo chmod 640 /etc/mpd.conf
fi

# set which version has been installed
if [ $SPOTinstall == "YES" ]
then
echo "plusSpotify" > /home/pi/RPi-Jukebox-RFID/settings/edition
else
echo "classic" > /home/pi/RPi-Jukebox-RFID/settings/edition
fi

# update mpc / mpd DB
mpc update

Expand Down Expand Up @@ -801,6 +807,11 @@ sudo chmod +x /home/pi/RPi-Jukebox-RFID/scripts/*.py
# see: https://github.com/MiczFlor/RPi-Jukebox-RFID/issues/54
sudo amixer cset numid=1 100%

# delete the global.conf file, in case somebody manually copied stuff back and forth
# this will be created the first time the Phoniebox is put to use
# by web app or RFID
rm /home/pi/RPi-Jukebox-RFID/settings/global.conf

# / Access settings
#####################################################

Expand Down

0 comments on commit c7faadf

Please sign in to comment.