From 6fbd3f4f227be9914da1faa4fe565d299969dd31 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Sun, 9 Jul 2017 11:25:46 +0200 Subject: [PATCH] functions: remove sudo calls --- sabayondevkit-functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sabayondevkit-functions.sh b/sabayondevkit-functions.sh index 3e3d2d4..6e1c633 100644 --- a/sabayondevkit-functions.sh +++ b/sabayondevkit-functions.sh @@ -6,7 +6,7 @@ check_docker_requirements(){ if [ "$(id -u)" != "0" ]; then groups | grep -q docker || echo "--> If you are not running the script as root, your user should be in the docker group to use it. (sudo gpasswd -a $USER docker)" fi - ps aux | grep -q '[d]ocker' || echo "--> Be sure to have the docker daemon running (sudo systemctl start docker) of configure it to run on boot (sudo systemctl enable docker). Trying to start it anyway" && sudo systemctl start docker || true + ps aux | grep -q '[d]ocker' || echo "--> Be sure to have the docker daemon running (sudo systemctl start docker) of configure it to run on boot (sudo systemctl enable docker). Trying to start it anyway" && systemctl start docker || true } die() { echo "$@" 1>&2 ; exit 1; }