diff options
Diffstat (limited to 'bootstrap.d/30-security.sh')
-rw-r--r-- | bootstrap.d/30-security.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bootstrap.d/30-security.sh b/bootstrap.d/30-security.sh index 899c250..3f25e4e 100644 --- a/bootstrap.d/30-security.sh +++ b/bootstrap.d/30-security.sh @@ -8,13 +8,13 @@ # Generate crypt(3) password string ENCRYPTED_PASSWORD=`mkpasswd -m sha-512 ${PASSWORD}` -# Set up default user +# Setup default user if [ "$ENABLE_USER" = true ] ; then chroot_exec adduser --gecos pi --add_extra_groups --disabled-password pi chroot_exec usermod -a -G sudo -p "${ENCRYPTED_PASSWORD}" pi fi -# Set up root password or not +# Setup root password or not if [ "$ENABLE_ROOT" = true ]; then chroot_exec usermod -p "${ENCRYPTED_PASSWORD}" root |