Files
Iris/mopidy_iris/system.sh

29 lines
489 B
Bash
Raw Normal View History

#!/bin/bash
if [[ $1 = "upgrade" ]]; then
UPGRADE="$(pip install --upgrade mopidy-iris)"
echo -e "${UPGRADE}"
elif [[ $1 = "restart" ]]; then
RESTART="$(service mopidy restart)"
echo -e "${RESTART}"
2018-11-02 16:10:38 +13:00
elif [[ $1 = "local_scan" ]]; then
SCAN="$(mopidyctl local scan)"
echo -e "${SCAN}"
elif [[ $1 = "test" ]]; then
2019-04-04 14:37:40 +13:00
sleep 3
2019-04-04 14:37:40 +13:00
TEST="$(echo 'Hello, this is your bash speaking. I was sleeping for 3 seconds.')"
2018-11-02 16:10:38 +13:00
echo -e "${TEST}"
2019-04-04 14:37:40 +13:00
else
2019-04-04 14:37:40 +13:00
echo -e "Unsupported system task"
fi
exit 0