From 8ed8e5a07a978a10b67c377ad577176a2bcf333b Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Tue, 29 Aug 2023 23:09:29 +0200
Subject: [PATCH] Fix broken setup script.

---
 bookworm/setup_scripts/init_user_login.sh | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/bookworm/setup_scripts/init_user_login.sh b/bookworm/setup_scripts/init_user_login.sh
index 8413cd8..aa8a03f 100755
--- a/bookworm/setup_scripts/init_user_login.sh
+++ b/bookworm/setup_scripts/init_user_login.sh
@@ -22,16 +22,16 @@ server="$1"
 eval $(ssh-agent)
 ssh-add
 
-# # This will be used to log-in as root from plom account.
-# echo 'Asking for new root password.'
-# ssh root@"${server}" "passwd"
-# 
-# # Set up plom's ~/.ssh/authorized_keys from root's.
-# ssh root@"${server}" 'useradd -m plom'
-# ssh root@"${server}" 'mkdir /home/plom/.ssh'
-# ssh root@"${server}" 'chown plom:plom /home/plom/.ssh'
-# ssh root@"${server}" 'cp /root/.ssh/authorized_keys /home/plom/.ssh/'
-# ssh root@"${server}" 'chown plom:plom /home/plom/.ssh/authorized_keys'
+# This will be used to log-in as root from plom account.
+echo 'Asking for new root password.'
+ssh root@"${server}" "passwd"
+
+# Set up plom's ~/.ssh/authorized_keys from root's.
+ssh root@"${server}" 'useradd -m plom'
+ssh root@"${server}" 'mkdir /home/plom/.ssh'
+ssh root@"${server}" 'chown plom:plom /home/plom/.ssh'
+ssh root@"${server}" 'cp /root/.ssh/authorized_keys /home/plom/.ssh/'
+ssh root@"${server}" 'chown plom:plom /home/plom/.ssh/authorized_keys'
 
 # Set up SSH config and remove direct SSH login to root.
 scp "${local_path_sshd_config}" root@"${server}":"${system_path_sshd_config}"
-- 
2.30.2