aboutsummaryrefslogtreecommitdiff
path: root/bootstrap.d/30-security.sh
diff options
context:
space:
mode:
authorJan Wagner <mail@jwagner.eu>2016-03-15 15:03:31 +0100
committerJan Wagner <mail@jwagner.eu>2016-03-15 15:03:31 +0100
commit24bd7e97cf9d07454c9cde74e4d80a1b3de9dfac (patch)
treeecafd5cf7a2ff7dc25a343098ccdf66a659334f5 /bootstrap.d/30-security.sh
parentd4ab3cfce58c908c8bdf85c96ea300c47db3ac85 (diff)
downloadrpi2-gen-image-24bd7e97cf9d07454c9cde74e4d80a1b3de9dfac.tar.gz
rpi2-gen-image-24bd7e97cf9d07454c9cde74e4d80a1b3de9dfac.tar.bz2
rpi2-gen-image-24bd7e97cf9d07454c9cde74e4d80a1b3de9dfac.zip
Added: KERNELSRC_PREBUILT, KERNELSRC_ rename, fix-quotes
Diffstat (limited to 'bootstrap.d/30-security.sh')
-rw-r--r--bootstrap.d/30-security.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bootstrap.d/30-security.sh b/bootstrap.d/30-security.sh
index 2bdacd9..a07719d 100644
--- a/bootstrap.d/30-security.sh
+++ b/bootstrap.d/30-security.sh
@@ -6,7 +6,7 @@
. ./functions.sh
# Generate crypt(3) password string
-ENCRYPTED_PASSWORD=`mkpasswd -m sha-512 ${PASSWORD}`
+ENCRYPTED_PASSWORD=`mkpasswd -m sha-512 "${PASSWORD}"`
# Setup default user
if [ "$ENABLE_USER" = true ] ; then
@@ -19,7 +19,7 @@ if [ "$ENABLE_ROOT" = true ] ; then
chroot_exec usermod -p "${ENCRYPTED_PASSWORD}" root
if [ "$ENABLE_ROOT_SSH" = true ] ; then
- sed -i "s|[#]*PermitRootLogin.*|PermitRootLogin yes|g" $R/etc/ssh/sshd_config
+ sed -i "s|[#]*PermitRootLogin.*|PermitRootLogin yes|g" "$R/etc/ssh/sshd_config"
fi
else
# Set no root password to disable root login