From 116aecd5cad9d367c8ea972feadac09c65205a1e Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Tue, 15 May 2018 09:22:32 +0200 Subject: [PATCH] Only adduser puppet if not exist This patch makes it possible to run ./all-in-one.sh twice. Change-Id: If4f9640289953c2c292840c510e9ee211fb35a23 --- all-in-one.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/all-in-one.sh b/all-in-one.sh index d60fb15d4..900bbe47c 100755 --- a/all-in-one.sh +++ b/all-in-one.sh @@ -55,7 +55,9 @@ elif uses_debs; then fi if [ $(lsb_release --id -s) = "Debian" ] ; then - adduser --disabled-password --gecos puppet,,, puppet + if ! getent passwd puppet ; then + adduser --disabled-password --gecos puppet,,, puppet + fi fi print_header 'Install Bundler'