aboutsummaryrefslogtreecommitdiff
path: root/bootstrap.d/30-security.sh
diff options
context:
space:
mode:
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