mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-30 11:38:36 -07:00
Do not auto-shutdown Tautulli in installers
This commit is contained in:
parent
e546689e01
commit
d5d219d46f
2 changed files with 3 additions and 12 deletions
|
@ -3,16 +3,11 @@
|
|||
function check_tautulli_running () {
|
||||
if pgrep -x "Tautulli" > /dev/null
|
||||
then
|
||||
dialogText=`osascript -e 'set dialogText to button returned of (display dialog "Tautulli is still running. Please shutdown Tautulli before continuing." buttons {"Retry", "Shutdown Tautulli", "Abort"})'`;
|
||||
dialogText=`osascript -e 'set dialogText to button returned of (display dialog "Tautulli is still running. Please shutdown Tautulli before continuing." buttons {"Retry", "Abort"})'`;
|
||||
|
||||
if [[ $dialogText == 'Retry' ]]
|
||||
then
|
||||
check_tautulli_running;
|
||||
elif [[ $dialogText == 'Shutdown Tautulli' ]]
|
||||
then
|
||||
pkill Tautulli
|
||||
while pgrep Tautulli > /dev/null; do sleep 1; done
|
||||
check_tautulli_running;
|
||||
elif [[ $dialogText == 'Abort' ]]
|
||||
then
|
||||
exit 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue