check if docker-compose exists

This commit is contained in:
Yossi Nixon 2019-05-03 07:35:00 +00:00
parent 8335f83c61
commit 553525fd36
1 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,10 @@
#!/bin/bash #!/bin/bash
if ! [ -x "$(command -v docker-compose)" ]; then
echo 'Error: docker-compose is not installed.' >&2
exit 1
fi
domains=(example.com www.example.com) domains=(example.com www.example.com)
rsa_key_size=4096 rsa_key_size=4096
data_path="./data/certbot" data_path="./data/certbot"