Merge pull request #122 from samply/check-curl

Check if curl is installed
This commit is contained in:
Jan 2023-09-22 08:22:52 +02:00 committed by GitHub
commit 50ef08ca6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -51,6 +51,7 @@ Ensure the following software (or newer) is installed:
- docker >= 20.10.1 - docker >= 20.10.1
- docker-compose >= 2.xx (`docker-compose` and `docker compose` are both supported). - docker-compose >= 2.xx (`docker-compose` and `docker compose` are both supported).
- systemd - systemd
- curl
We recommend to install Docker(-compose) from its official sources as described on the [Docker website](https://docs.docker.com). We recommend to install Docker(-compose) from its official sources as described on the [Docker website](https://docs.docker.com).

View File

@ -14,7 +14,7 @@ checkOwner /etc/bridgehead bridgehead || exit 1
## Check if user is a su ## Check if user is a su
log INFO "Checking if all prerequisites are met ..." log INFO "Checking if all prerequisites are met ..."
prerequisites="git docker" prerequisites="git docker curl"
for prerequisite in $prerequisites; do for prerequisite in $prerequisites; do
$prerequisite --version 2>&1 $prerequisite --version 2>&1
is_available=$? is_available=$?