Added docker check
This commit is contained in:
parent
7a3e8c5a1a
commit
73305e3935
8
generate-certs.sh
Normal file → Executable file
8
generate-certs.sh
Normal file → Executable file
@ -3,7 +3,13 @@
|
|||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
#chdir to current dir.
|
#chdir to current dir.
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")" || exit
|
||||||
|
|
||||||
|
#Check docker exist
|
||||||
|
if ! [ -x "$(command -v docker)" ]; then
|
||||||
|
echo -e 'Error: Docker is not installed.\n'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
#Load config
|
#Load config
|
||||||
config_file=$1
|
config_file=$1
|
||||||
|
Loading…
Reference in New Issue
Block a user