From 125d105403b169b53d9eb36e3fa9e0d300f1f094 Mon Sep 17 00:00:00 2001 From: Adrian Dvergsdal Date: Tue, 27 Sep 2016 23:41:58 +0200 Subject: [PATCH] Disable password login if password is zero --- entrypoint | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/entrypoint b/entrypoint index d7d869d..71387c8 100755 --- a/entrypoint +++ b/entrypoint @@ -61,13 +61,12 @@ function createUser() { chown root:root /home/$user chmod 755 /home/$user - if [ -z "$pass" ]; then - pass="$(tr -dc A-Za-z0-9 > /home/$user/.ssh/authorized_keys