Skip to content

Commit

Permalink
fix: dont start services right away (wait for reboot)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinSchiller committed Apr 2, 2024
1 parent 6ae3c4e commit 579852e
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions scripts/installscripts/install-jukebox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1074,6 +1074,8 @@ install_main() {

echo "Configuring MPD..."
local mpd_conf="/etc/mpd.conf"
sudo systemctl enable mpd
sudo systemctl stop mpd
# MPD configuration
# -rw-r----- 1 mpd audio 14043 Jul 17 20:16 /etc/mpd.conf
sudo cp "${jukebox_dir}"/misc/sampleconfigs/mpd.conf.sample ${mpd_conf}
Expand All @@ -1086,19 +1088,16 @@ install_main() {
sudo chown mpd:audio "${mpd_conf}"
sudo chmod 640 "${mpd_conf}"

# start mpd
echo "Starting mpd service..."
sudo service mpd restart
sudo systemctl enable mpd

# Spotify config
if [ "${SPOTinstall}" == "YES" ]; then
echo "Configuring Spotify support..."
local etc_mopidy_conf="/etc/mopidy/mopidy.conf"
local mopidy_conf="${HOME_DIR}/.config/mopidy/mopidy.conf"
sudo systemctl disable mpd
sudo service mpd stop
sudo systemctl stop mpd
sudo systemctl enable mopidy
sudo systemctl stop mopidy
# Install Config Files
sudo cp "${jukebox_dir}"/misc/sampleconfigs/locale.gen.sample /etc/locale.gen
sudo cp "${jukebox_dir}"/misc/sampleconfigs/locale.sample /etc/default/locale
Expand Down Expand Up @@ -1142,9 +1141,6 @@ install_main() {
echo "classic" > "${jukebox_dir}"/settings/edition
fi

# update mpc / mpd DB
mpc update

# / INSTALLATION
#####################################################
}
Expand Down

0 comments on commit 579852e

Please sign in to comment.