2018-04-16 15:51:35 +12:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
2018-04-17 15:58:39 +12:00
|
|
|
if [[ $1 = "upgrade" ]]; then
|
2018-04-21 21:59:40 +12:00
|
|
|
|
|
|
|
|
UPGRADE="$(pip install --upgrade mopidy-iris)"
|
|
|
|
|
echo -e "${UPGRADE}"
|
2018-04-16 15:51:35 +12:00
|
|
|
|
2018-04-17 15:58:39 +12:00
|
|
|
elif [[ $1 = "restart" ]]; then
|
2018-04-16 15:51:35 +12:00
|
|
|
|
2018-04-21 21:59:40 +12:00
|
|
|
sleep $2
|
|
|
|
|
|
|
|
|
|
RESTART="$(service mopidy restart)"
|
|
|
|
|
echo -e "${RESTART}"
|
2018-04-16 15:51:35 +12:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
exit 0
|