From: Silvio Rhatto Date: Wed, 21 Sep 2016 15:51:00 +0000 (-0300) Subject: Deploy: check for sudo config X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=07b03c209966c0c2acf4e0c1f0fbd122e773fbc3;p=puppet-bootstrap.git Deploy: check for sudo config --- diff --git a/bin/dependencies b/bin/dependencies index 7cf3b90..4330730 100755 --- a/bin/dependencies +++ b/bin/dependencies @@ -16,6 +16,11 @@ DEVELOP_DEPENDENCIES="git mr whois hiera-eyaml" # Set sudo config if [ "`whoami`" != 'root' ]; then SUDO="sudo" + + if ! sudo -n true; then + echo "Please set passwordless sudo." + exit 1 + fi fi # Install a package, thanks to the Hydra Suite.