From: Musa Ahmed Date: Thu, 19 Oct 2023 02:49:37 +0000 (-0400) Subject: Change: Install script improvements (#4387) X-Git-Tag: v2.0.0-beta.1~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f893ba929af25742623ce0673fb4a9aca0ce7381;p=thirdparty%2Fpaperless-ngx.git Change: Install script improvements (#4387) * (1) Made curl command to download installation script silent while allowing erros to be dispalyed. (2) Made `if ! command -v ${DOCKER_COMPOSE_CMD}` silent as the other checks are as well. * Made curl options more clear --- diff --git a/docs/setup.md b/docs/setup.md index d6fcad93f0..1519afcde6 100644 --- a/docs/setup.md +++ b/docs/setup.md @@ -30,7 +30,7 @@ steps described in [Docker setup](#docker_hub) automatically. 2. Download and run the installation script: ```shell-session - $ bash -c "$(curl -L https://raw.githubusercontent.com/paperless-ngx/paperless-ngx/main/install-paperless-ngx.sh)" + $ bash -c "$(curl --location --silent --show-error https://raw.githubusercontent.com/paperless-ngx/paperless-ngx/main/install-paperless-ngx.sh)" ``` !!! note diff --git a/install-paperless-ngx.sh b/install-paperless-ngx.sh index 24aedba3cd..894f9c76a4 100755 --- a/install-paperless-ngx.sh +++ b/install-paperless-ngx.sh @@ -57,7 +57,7 @@ if ! command -v docker &> /dev/null ; then fi DOCKER_COMPOSE_CMD="docker-compose" -if ! command -v ${DOCKER_COMPOSE_CMD} ; then +if ! command -v ${DOCKER_COMPOSE_CMD} &> /dev/null ; then if docker compose version &> /dev/null ; then DOCKER_COMPOSE_CMD="docker compose" else