added checks for docker commands

This commit is contained in:
jash
2018-12-08 20:50:23 +01:00
committed by kexkey
parent 714e72e76b
commit 4546cb1d54

12
dist/setup.sh vendored
View File

@@ -528,6 +528,16 @@ sanity_checks() {
echo " check requirements."
if ! [ -x "$(command -v docker)" ]; then
echo " docker is not installed on your system. Please check https://www.docker.com/get-started."
exit
fi
if ! [ -x "$(command -v docker-compose)" ]; then
echo " docker-compose is not installed on your system. Please check https://docs.docker.com/compose/install/."
exit
fi
local OS=$(uname -s)
if [[ ''$RUN_AS_USER == '' ]]; then
@@ -581,7 +591,7 @@ sanity_checks() {
SUDO_REQUIRED=1
fi
else
echo " check everything seems to be ok."
echo " nice! everything seems to be ok."
fi
}