]> gitweb.fluxo.info Git - puppet-bootstrap.git/commitdiff
Deploy: check for sudo config
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 21 Sep 2016 15:51:00 +0000 (12:51 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 21 Sep 2016 15:51:00 +0000 (12:51 -0300)
bin/dependencies

index 7cf3b909a5d63f6cb0f7ecc91a0eecdec0887ada..43307300cc5173bfebb9ad1c6ebcca0309440f94 100755 (executable)
@@ -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.