diff options
author | Jan Wagner <mail@jwagner.eu> | 2016-03-13 22:48:59 +0100 |
---|---|---|
committer | Jan Wagner <mail@jwagner.eu> | 2016-03-13 22:48:59 +0100 |
commit | 9d88180e4b8d9e36b5116fc17f2408c1a592e968 (patch) | |
tree | a2320d5220ae64f6c0e8879f0f2459508cf6c566 /bootstrap.d/30-security.sh | |
parent | b855bcffebe13327660e4e7955de5e38018bcb90 (diff) | |
download | rpi2-gen-image-9d88180e4b8d9e36b5116fc17f2408c1a592e968.tar.gz rpi2-gen-image-9d88180e4b8d9e36b5116fc17f2408c1a592e968.tar.bz2 rpi2-gen-image-9d88180e4b8d9e36b5116fc17f2408c1a592e968.zip |
Added: KERNEL_SRCDIR, path-checks, code-cleanup
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 |