Update setup.sh

This commit is contained in:
edwark43
2024-03-22 08:35:28 -04:00
committed by GitHub
parent 811d40cb1e
commit 4f242678ac

View File

@@ -270,9 +270,14 @@ clear
########## --------- Enabling MPD service --------- ########## ########## --------- Enabling MPD service --------- ##########
printf '%s%sEnabling mpd service%s\n\n' "${CNC}" "${CRE}" "${CNC}" if systemctl is-enabled --quiet mpd.service; then
systemctl enable --now mpd.service printf "\n%s%sDisabling and stopping the global mpd service%s\n" "${BLD}" "${CBL}" "${CNC}"
printf "%s%sDone!!%s\n\n" "${BLD}" "${CGR}" "${CNC}" sudo systemctl stop mpd.service
sudo systemctl disable mpd.service
fi
printf "\n%s%sEnabling and starting the user-level mpd service%s\n" "${BLD}" "${CYE}" "${CNC}"
systemctl --user enable --now mpd.service
sleep 2 sleep 2
clear clear