From 9a6cca8e7ff25bde93453c4063777cd463f3e480 Mon Sep 17 00:00:00 2001 From: Adam Dodman Date: Wed, 1 Mar 2017 23:30:21 +0000 Subject: [PATCH] Start of Muximux support --- start.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/start.sh b/start.sh index 3c07126..cebc355 100644 --- a/start.sh +++ b/start.sh @@ -1,10 +1,10 @@ #!/bin/bash ### Script for building and running a media processing system using docker ### Adam Dodman -# Prereqs: docker, docker-compose, curl (https) +# Prereqs: docker, docker-compose, curl (https), git export VOLDIR="/volumes/media-server" -SERVICES=("couchpotato" "deluge" "nzbget" "plex" "plexpy" "sickrage" "launcher") +SERVICES=("couchpotato" "deluge" "nzbget" "plex" "plexpy" "sickrage" "nginx") SERVICEUID=("745" "647" "236" "787" "426" "439" "0") [[ $EUID -ne 0 ]] && echo "Please run this script as root" && exit 1 @@ -32,7 +32,11 @@ done echo -e "\n" > $VOLDIR/plex/Plex\ Media\ Server/Preferences.xml && chown -R 787:787 $VOLDIR/plex [[ ! -a ./docker-compose.yml ]] && echo "Downloading Docker Compose config.." && curl -sSL https://raw.githubusercontent.com/Adam-Ant/media-server-in-a-box/master/docker-compose.yml > ./docker-compose.yml -[[ ! -a $VOLDIR/launcher/nginx.cfg ]] && echo "Downloading nginx.cfg..." && curl -sSL https://raw.githubusercontent.com/Adam-Ant/media-server-in-a-box/master/nginx.cfg > $VOLDIR/launcher/nginx.cfg +[[ ! -a $VOLDIR/nginx/nginx.cfg ]] && echo "Downloading nginx.cfg..." && curl -sSL https://raw.githubusercontent.com/Adam-Ant/media-server-in-a-box/master/nginx.cfg > $VOLDIR/nginx/nginx.cfg + +[[ ! -d $VOLDIR/nginx/Muximux ]] && echo "Downloading Muximix..." && git -C $VOLDIR/nginx clone https://github.com/mescon/Muximux + +cd $VOLDIR/nginx/Muximux/ && git pull echo "#####################################" echo "# Config and directory struture OK! #"