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.15.4 docker/r10k/adduser.sh
r10k-3.15.3 docker/r10k/adduser.sh
r10k-3.15.2 docker/r10k/adduser.sh
r10k-3.15.1 docker/r10k/adduser.sh
r10k-3.15.0 docker/r10k/adduser.sh
akerl-r10k-3.14.2.1 docker/r10k/adduser.sh
r10k-3.14.2 docker/r10k/adduser.sh
r10k-3.14.1 docker/r10k/adduser.sh
r10k-3.14.0 docker/r10k/adduser.sh
r10k-3.13.0 docker/r10k/adduser.sh
r10k-3.12.1 docker/r10k/adduser.sh
r10k-3.12.0 docker/r10k/adduser.sh
r10k-3.11.0 docker/r10k/adduser.sh
r10k-3.10.0 docker/r10k/adduser.sh
r10k-3.9.3 docker/r10k/adduser.sh
r10k-3.9.2 docker/r10k/adduser.sh
r10k-3.9.1 docker/r10k/adduser.sh
r10k-3.9.0 docker/r10k/adduser.sh
r10k-3.8.0 docker/r10k/adduser.sh
r10k-3.7.0 docker/r10k/adduser.sh