Add MacOS pkg post install script to open Tautulli

This commit is contained in:
JonnyWong16 2020-04-26 18:44:00 -07:00
parent 347db6b770
commit 3ea257f8f3
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
dialogText=`osascript -e 'set dialogText to button returned of (display dialog "Installation complete. Start Tautulli?" buttons {"Start", "Close"})'`;
if [[ $dialogText == 'Start' ]]
then
open /Applications/Tautulli.app
else
exit 0;
fi