Logo
Explore Help
Register Sign In
secstate/Iris
Public Access
1
0
Fork 0
You've already forked Iris
Code Issues Pull Requests Actions Packages Projects Releases 1 Wiki Activity
Files
22ba55004ee2eda55bec5008b05cec7c4b654236
Iris/mopidy_iris/system.sh

15 lines
219 B
Bash
Raw Normal View History

Bundle sudo actions into system task for cleaner permissions - some users may not be comfortable with this
2018-04-16 15:51:35 +12:00
#!/bin/bash
System script, implement deley to alert other users; UI
2018-04-17 15:58:39 +12:00
if [[ $1 = "upgrade" ]]; then
Bundle sudo actions into system task for cleaner permissions - some users may not be comfortable with this
2018-04-16 15:51:35 +12:00
UPGRADE=$(pip install --upgrade mopidy-iris)
System script, implement deley to alert other users; UI
2018-04-17 15:58:39 +12:00
echo -e "$UPGRADE"
Bundle sudo actions into system task for cleaner permissions - some users may not be comfortable with this
2018-04-16 15:51:35 +12:00
System script, implement deley to alert other users; UI
2018-04-17 15:58:39 +12:00
elif [[ $1 = "restart" ]]; then
sleep 5
Bundle sudo actions into system task for cleaner permissions - some users may not be comfortable with this
2018-04-16 15:51:35 +12:00
System script, implement deley to alert other users; UI
2018-04-17 15:58:39 +12:00
RESTART=$(service mopidy restart)
echo -e "$RESTART"
Bundle sudo actions into system task for cleaner permissions - some users may not be comfortable with this
2018-04-16 15:51:35 +12:00
fi
exit 0
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.2 Page: 969ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API