home · contact · privacy
Fixes.
authorChristian Heller <c.heller@plomlompom.de>
Mon, 31 Mar 2025 13:32:46 +0000 (15:32 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 31 Mar 2025 13:32:46 +0000 (15:32 +0200)
bookworm/scripts/init_server_access.sh
bookworm/scripts/lib/init_packages

index 1fb240d4dea6222332f6112e0a6abdc587863949..4ec9b18988c51ab1eff01c4aa3e72a8e5a64005a 100755 (executable)
@@ -16,7 +16,9 @@ set -e
 ssh-keyscan "${SERVER}" >> "${PATH_KNOWN_HOSTS}"
 
 echo '\nAsking for new root password.\n'
+stty -echo
 ssh "root@${SERVER}" 'printf "\n\n" && passwd'
+stty echo
 
 echo '\nSetting up config repo.'
 ssh "root@${SERVER}" 'apt update && apt install -y git && git clone https://plomlompom.com/repos/clone/config'
index 0264f741c60a8faf414630df3c73c57dc6f196b0..2d9d6ca4582356a553d9426eb99cf06d9dde5dea 100644 (file)
@@ -33,6 +33,7 @@ init_packages() {
     done
 
     apt -y --purge autoremove
-    echo read "DEBUG: Check if this makes a difference …"
+    read
+    echo "DEBUG: Check if this makes a difference …"
     apt -y dist-upgrade
 }