]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Change: Install script improvements (#4387)
authorMusa Ahmed <musaa.ahmed7@gmail.com>
Thu, 19 Oct 2023 02:49:37 +0000 (22:49 -0400)
committerGitHub <noreply@github.com>
Thu, 19 Oct 2023 02:49:37 +0000 (02:49 +0000)
* (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

docs/setup.md
install-paperless-ngx.sh

index d6fcad93f0d1327ae065a4e19dea9c823d66a973..1519afcde6c33d40847e0b0c015dc0743d1dfa4b 100644 (file)
@@ -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
index 24aedba3cdd43da6ac590e5d13e6cf64d4004972..894f9c76a413e4b8088bb731a5d57cd2df589c67 100755 (executable)
@@ -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