Skip to content

Commit

Permalink
dont check service state
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinSchiller committed Nov 17, 2023
1 parent ee95822 commit 223b31b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions installation/routines/setup_mpd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ _mpd_check () {
verify_file_contains_string "${AUDIOFOLDERS_PATH}" "${MPD_CONF_PATH}"
verify_file_contains_string "${PLAYLISTS_PATH}" "${MPD_CONF_PATH}"

check_service_state mpd.socket inactive
check_service_state mpd inactive
# test ! "$DOCKER_RUNNING" == true && check_service_state mpd.socket inactive # not valid in Docker test
# test ! "$DOCKER_RUNNING" == true && check_service_state mpd inactive # not valid in Docker test
check_service_enablement mpd.socket disabled
check_service_enablement mpd disabled

check_service_state mpd active --user
# check_service_state mpd active --user
check_service_enablement mpd.socket enabled --user
check_service_enablement mpd enabled --user
}
Expand Down Expand Up @@ -87,7 +87,7 @@ setup_mpd() {
systemctl --user enable mpd.socket
systemctl --user enable mpd
# Start MPD now, but not the socket: MPD is already started and we expect a reboot anyway
systemctl --user start mpd
# systemctl --user start mpd

_mpd_check
fi
Expand Down

0 comments on commit 223b31b

Please sign in to comment.