From e75ea257e8500aa36a4b03e884098263499d92b6 Mon Sep 17 00:00:00 2001 From: Ingo Sigmund Date: Thu, 3 Mar 2022 13:47:09 +0100 Subject: [PATCH] Correct install script (stop creating unused named volumes) --- install-paperless-ngx.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install-paperless-ngx.sh b/install-paperless-ngx.sh index e8a046c40..6b1584951 100755 --- a/install-paperless-ngx.sh +++ b/install-paperless-ngx.sh @@ -329,16 +329,20 @@ sed -i "s#- \./consume:/usr/src/paperless/consume#- $CONSUME_FOLDER:/usr/src/pap if [[ -n $MEDIA_FOLDER ]] ; then sed -i "s#- media:/usr/src/paperless/media#- $MEDIA_FOLDER:/usr/src/paperless/media#g" docker-compose.yml + sed -i "/^\s*media:/d" docker-compose.yml fi if [[ -n $DATA_FOLDER ]] ; then sed -i "s#- data:/usr/src/paperless/data#- $DATA_FOLDER:/usr/src/paperless/data#g" docker-compose.yml + sed -i "/^\s*data:/d" docker-compose.yml fi if [[ -n $POSTGRES_FOLDER ]] ; then sed -i "s#- pgdata:/var/lib/postgresql/data#- $POSTGRES_FOLDER:/var/lib/postgresql/data#g" docker-compose.yml + sed -i "/^\s*pgdata:/d" docker-compose.yml fi + docker-compose pull docker-compose run --rm -e DJANGO_SUPERUSER_PASSWORD="$PASSWORD" webserver createsuperuser --noinput --username "$USERNAME" --email "$EMAIL"