Nope, threading was the best approach (reinstated)

This commit is contained in:
James Barnsley
2020-01-01 21:41:38 +13:00
parent e6136505b4
commit fd66edfbe4
3 changed files with 73 additions and 47 deletions

View File

@ -24,7 +24,7 @@ elif [[ $1 = "restart" ]]; then
elif [[ $1 = "local_scan" ]]; then
if [[ $IS_CONTAINER ]]; then
SCAN="$(sudo -u mopidy mopidy local scan)"
SCAN="$(mopidy --config /config/mopidy.conf local scan)"
else
SCAN="$(sudo mopidyctl local scan)"
fi
@ -32,9 +32,9 @@ elif [[ $1 = "local_scan" ]]; then
elif [[ $1 = "test" ]]; then
sleep 5
sleep 3
TEST="$(echo 'Hello, this is your bash speaking. I was sleeping for 5 seconds.')"
TEST="$(echo 'Hello, this is your bash speaking. I was sleeping for 3 seconds.')"
echo -e "${TEST}"
else