From 30ae060482dcad0001a87933e3b74d8e07e6a7de Mon Sep 17 00:00:00 2001 From: cmacrae Date: Fri, 2 Jun 2017 15:43:38 +0100 Subject: [PATCH] boostrap: Prompt for sudo in create_daemon_users if non-interactive --- bootstrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap.sh b/bootstrap.sh index eb34b69e..c011ed37 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -80,7 +80,7 @@ sudo_prompt(){ # Daemon setup create_daemon_users(){ echo -e ""$BLUE"Nix daemon user/group configuration"$ESC"" - sudo_prompt + [ ! -z $CREATE_DAEMON_USERS ] && sudo_prompt # If the group exists, dscl returns exit code 56. # Since this is not strictly an error code, standard code