Sha256: 831549dcf241ddfd127641313749f180e89dea751412c31c3a2c0aa2d0e9f6bd

Contents?: true

Size: 243 Bytes

Versions: 26

Compression:

Stored size: 243 Bytes

Contents

#!/bin/sh

getent_string="$(getent group | grep -e ':999$')"
exit_code=$?

if [ "$exit_code" = '0' ]; then
  group="$(echo $getent_string | cut -d ':' -f1)"
else
  addgroup -g 999 puppet
  group='puppet'
fi

adduser -G $group -D -u 999 puppet

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
r10k-3.6.0 docker/r10k/adduser.sh
r10k-3.5.2 docker/r10k/adduser.sh
r10k-3.5.1 docker/r10k/adduser.sh
r10k-3.5.0 docker/r10k/adduser.sh
r10k-3.4.1 docker/r10k/adduser.sh
r10k-3.4.0 docker/r10k/adduser.sh