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 3f25e4e..2bdacd9 100644 --- a/bootstrap.d/30-security.sh +++ b/bootstrap.d/30-security.sh @@ -15,10 +15,10 @@ if [ "$ENABLE_USER" = true ] ; then fi # Setup root password or not -if [ "$ENABLE_ROOT" = true ]; then +if [ "$ENABLE_ROOT" = true ] ; then chroot_exec usermod -p "${ENCRYPTED_PASSWORD}" root - if [ "$ENABLE_ROOT_SSH" = true ]; then + if [ "$ENABLE_ROOT_SSH" = true ] ; then sed -i "s|[#]*PermitRootLogin.*|PermitRootLogin yes|g" $R/etc/ssh/sshd_config fi else |