From 71fcfa972f77c4f4b409a785e14aeaaa936546ff Mon Sep 17 00:00:00 2001 From: Adam Dodman Date: Tue, 13 Sep 2016 23:11:35 +0100 Subject: [PATCH] Added laucher folder, used for management files (docker-compose) --- start.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/start.sh b/start.sh index ddd9c13..846d8ed 100644 --- a/start.sh +++ b/start.sh @@ -4,8 +4,8 @@ # Prereqs: docker, docker-compose, curl (https) export VOLDIR="/volumes/media-server" -SERVICES=("couchpotato" "deluge" "headphones" "nzbget" "plex" "plexpy" "sickrage") -SERVICEUID=("745" "647" "526" "236" "787" "426" "439") +SERVICES=("couchpotato" "deluge" "headphones" "nzbget" "plex" "plexpy" "sickrage" "launcher") +SERVICEUID=("745" "647" "526" "236" "787" "426" "439" "0") [[ $EUID -ne 0 ]] && echo "Please run this script as root" && exit 1 @@ -28,6 +28,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 ${SERVICEUID[$i]}:${SERVICEUID[$i]} $VOLDIR/${SERVICES[$i]} done -[[ ! -a $VOLDIR/docker-compose.yml ]] && echo "Downloading docker-compose.yml.." && curl -sSL https://raw.githubusercontent.com/Adam-Ant/media-server-in-a-box/master/docker-compose.yml > $VOLDIR/media-compose.yml +[[ ! -a $VOLDIR/launcher/docker-compose.yml ]] && echo "Downloading docker-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/media-compose.yml up -d +exec docker-compose -p media -f $VOLDIR/launcher/media-compose.yml up -d