Add MacOS pkg post install script to open Tautulli
This commit is contained in:
9
package/macos-scripts/postinstall
Executable file
9
package/macos-scripts/postinstall
Executable 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
|
Reference in New Issue
Block a user