Only adduser puppet if not exist

This patch makes it possible to run ./all-in-one.sh twice.

Change-Id: If4f9640289953c2c292840c510e9ee211fb35a23
This commit is contained in:
Thomas Goirand 2018-05-15 09:22:32 +02:00 committed by Tobias Urdin
parent 4bbea36c6f
commit 116aecd5ca
1 changed files with 3 additions and 1 deletions

View File

@ -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'