remove debug mode

This commit is contained in:
Dennis Hermsmeier 2018-12-01 15:34:44 +01:00
parent 6f1544c7f0
commit 33a3f888cb

View File

@ -10,11 +10,9 @@ if [ "${KEYPAIR_LOGIN}" = "true" ] && [ -f "${HOME}/.ssh/authorized_keys" ] ; th
echo "Enabled root-login by keypair and disabled password-login" echo "Enabled root-login by keypair and disabled password-login"
else else
sed -i s/#PermitRootLogin.*/PermitRootLogin\ yes/ /etc/ssh/sshd_config sed -i s/#PermitRootLogin.*/PermitRootLogin\ yes/ /etc/ssh/sshd_config
set +x
if [ -n "${ROOT_PASSWORD}" ] && [ "${ROOT_PASSWORD}" != "root" ]; then if [ -n "${ROOT_PASSWORD}" ] && [ "${ROOT_PASSWORD}" != "root" ]; then
echo "root:${ROOT_PASSWORD}" | chpasswd echo "root:${ROOT_PASSWORD}" | chpasswd
fi fi
set -x
echo "Enabled root-login by password" echo "Enabled root-login by password"
fi fi