From 9dcbb74fa1026197f1ec9c936aa5a648fac925f2 Mon Sep 17 00:00:00 2001 From: Adam Dodman Date: Wed, 1 Mar 2017 18:33:47 +0000 Subject: [PATCH] Finish Merge --- start.sh | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/start.sh b/start.sh index 70ee07e..afdda94 100644 --- a/start.sh +++ b/start.sh @@ -4,13 +4,8 @@ # Prereqs: docker, docker-compose, curl (https) export VOLDIR="/volumes/media-server" -<<<<<<< HEAD SERVICES=("couchpotato" "deluge" "nzbget" "plex" "plexpy" "sickrage" "launcher") SERVICEUID=("745" "647" "236" "787" "426" "439" "0") -======= -SERVICES=("couchpotato" "deluge" "headphones" "nzbget" "plex" "plexpy" "sickrage" "launcher" "radarr") -SERVICEUID=("745" "647" "526" "236" "787" "426" "439" "0" "326") ->>>>>>> master [[ $EUID -ne 0 ]] && echo "Please run this script as root" && exit 1 @@ -32,7 +27,6 @@ for ((i=0; i<$slen; i++)); do [[ $( ls -dn $VOLDIR/${SERVICES[$i]} | awk '{print $3}') != ${SERVICEUID[$i]} ]] && echo "Chowning $VOLDIR/${SERVICES[$i]} to user ${SERVICEUID[$i]}" && chown -R ${SERVICEUID[$i]}:${SERVICEUID[$i]} $VOLDIR/${SERVICES[$i]} done -<<<<<<< HEAD #Since we are not using net=host, we need to whitelist the subnet in plex. ##TODO## Make this overrideable with commandline argument [[ ! -a $VOLDIR/plex/Plex\ Media\ Server/Preferences.xml ]] && echo Adding subnet to Plex Whitelist... && mkdir -p $VOLDIR/plex/Plex\ Media\ Server/ && \ echo -e "\n" > $VOLDIR/plex/Plex\ Media\ Server/Preferences.xml && chown -R 787:787 $VOLDIR/plex @@ -45,8 +39,3 @@ echo "# Config and directory struture OK! #" echo "#####################################" echo echo "Run docker-compose up -d to start the containers..." -======= -[[ ! -a $VOLDIR/launcher/media-compose.yml ]] && echo "Downloading media-compose.yml.." && curl -sSL https://raw.githubusercontent.com/Adam-Ant/media-server-in-a-box/master/docker-compose.yml > $VOLDIR/launcher/media-compose.yml -echo "Starting services..." -exec docker-compose -p media -f $VOLDIR/launcher/media-compose.yml up -d ->>>>>>> master