System script, implement deley to alert other users; UI

This commit is contained in:
James Barnsley
2018-04-17 15:58:39 +12:00
parent 23dd955d6d
commit c48d07a8cd
10 changed files with 25481 additions and 23589 deletions

View File

@ -1,12 +1,15 @@
#!/bin/bash
if [ $1 = "upgrade" ]; then
if [[ $1 = "upgrade" ]]; then
UPGRADE=$(pip install --upgrade mopidy-iris)
RESTART=$(service mopidy restart)
echo -e "$UPGRADE"
elif [ $1 = "restart" ]; then
RESTART=$(service mopidy restart)
elif [[ $1 = "restart" ]]; then
sleep 5
RESTART=$(service mopidy restart)
echo -e "$RESTART"
fi
exit 0