forked from anandslab/AtoMiC-ToolKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
menu-personal-media-servers.sh
executable file
·41 lines (39 loc) · 1.49 KB
/
menu-personal-media-servers.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
# Script Name: AtoMiC Media Servers Menu
SUBCHOICE=$(whiptail --title "AtoMiC ToolKit - htpcBeginner.com" \
--menu "Which app would you like to manage?" --backtitle "$BACKTITLE" \
--fb --cancel-button "Exit" $LINES $COLUMNS "$NETLINES" \
"Emby" "Organize, play, and stream audio and video" \
"Plex" "organizes all of your video, music and photo collections" \
"Tautulli" "Monitoring and tracking tool for Plex Media Server" \
"Subsonic" "web-based media streamer and jukebox" \
"Madsonic" "web-based media streamer and jukebox fork of Subsonic" \
"Ubooquity" "Home server for your comics and ebooks" \
"Go Back" "Back to Main Menu" 3>&1 1>&2 2>&3)
exitstatus=$?
if [[ $exitstatus = 0 ]]; then
source "$SCRIPTPATH/inc/app-constant-reset.sh"
case "$SUBCHOICE" in
"Emby" )
source "$SCRIPTPATH/emby-server/emby-server-menu.sh" ;;
"Plex" )
source "$SCRIPTPATH/plexmediaserver/plexmediaserver-menu.sh" ;;
"Tautulli" )
source "$SCRIPTPATH/tautulli/tautulli-menu.sh" ;;
"Subsonic" )
source "$SCRIPTPATH/subsonic/subsonic-menu.sh" ;;
"Madsonic" )
source "$SCRIPTPATH/madsonic/madsonic-menu.sh" ;;
"Ubooquity" )
source "$SCRIPTPATH/ubooquity/ubooquity-menu.sh" ;;
"Go Back" )
source "$SCRIPTPATH/menus/menu-main.sh" ;;
*)
source "$SCRIPTPATH/inc/invalid-option.sh" ;;
esac
else
source "$SCRIPTPATH/inc/thankyou.sh"
echo
sleep 1
exit 0
fi