From 07b03c209966c0c2acf4e0c1f0fbd122e773fbc3 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 21 Sep 2016 12:51:00 -0300 Subject: Deploy: check for sudo config --- bin/dependencies | 5 +++++ 1 file changed, 5 insertions(+) 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. -- cgit v1.2.3