From d5df8775207c5a3253b4dabfbcc497f86d878e3a Mon Sep 17 00:00:00 2001 From: Adam Dodman Date: Sun, 9 Apr 2017 15:43:00 +0100 Subject: [PATCH] Add env variable to setup --- update.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/update.sh b/update.sh index 1791b9c..7d709b4 100644 --- a/update.sh +++ b/update.sh @@ -32,6 +32,8 @@ 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 ./.env ]] && echo "Setting up env file..." && echo "VOLDIR=${VOLDIR}" > ./.env + [[ ! -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/Organizr ]] && echo "Downloading Organizr..." && git -C $VOLDIR/nginx clone https://github.com/causefx/Organizr && chown -R 82:82 $VOLDIR/nginx/Organizr