From ca1e76fe56bf314ce2b438aa943995632d785b53 Mon Sep 17 00:00:00 2001 From: Adam Dodman Date: Fri, 9 Sep 2016 13:08:12 +0100 Subject: [PATCH] Remove Docker-machine dependency --- start.sh | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/start.sh b/start.sh index 214bde2..ddd9c13 100644 --- a/start.sh +++ b/start.sh @@ -7,15 +7,8 @@ export VOLDIR="/volumes/media-server" SERVICES=("couchpotato" "deluge" "headphones" "nzbget" "plex" "plexpy" "sickrage") SERVICEUID=("745" "647" "526" "236" "787" "426" "439") -DOCKER_TLS_VERIFY="1" -DOCKER_HOST="tcp://192.168.1.4:2376" -DOCKER_CERT_PATH="/home/adam/.docker/machine/machines/DockerDev" -DOCKER_MACHINE_NAME="DockerDev" - - [[ $EUID -ne 0 ]] && echo "Please run this script as root" && exit 1 - #Check if docker is installed and running docker version &> /dev/null [[ $? -ne 0 ]] && echo "Cannot connect to Docker daemon. Please check your configuration." && exit 1 @@ -25,20 +18,16 @@ docker-compose version &> /dev/null # Check if media container is configured [[ $(docker ps -a --filter="name=media" | wc -l) != "2" ]] && echo "Cannot find a media container - please configure one with your media mounted at /media inside the container before running this script (to keep the size down use tianon/true)" && exit 1 - - # Check if volumes folder exists [[ ! -d $VOLDIR ]] && echo "Creating volumes folder..." && mkdir -p $VOLDIR [[ ! -d $VOLDIR/couchpotato ]] - slen=${#SERVICES[@]} for ((i=0; i<$slen; i++)); do [[ ! -d $VOLDIR/${SERVICES[$i]} ]] && echo "Creating folder $VOLDIR/${SERVICES[$i]}" && mkdir -p $VOLDIR/${SERVICES[$i]} [[ $( 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 echo "Starting services..." exec docker-compose -p media -f $VOLDIR/media-compose.yml up -d