home · contact · privacy
Fix.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 15 Apr 2025 11:40:42 +0000 (13:40 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 15 Apr 2025 11:40:42 +0000 (13:40 +0200)
bookworm/home/catgirl/.plomlib/constants_catgirl [changed from file to symlink]
bookworm/scripts/lib/constants_catgirl [new file with mode: 0644]
testing/scripts/init_server_access.sh

deleted file mode 100644 (file)
index daa6b56b029544c18287914e042e8b1f2b1ea212..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1,4 +0,0 @@
-. lib/constants_user  # PATH_USER_HOME
-
-PATH_USER_SHARE_CATGIRL="${PATH_USER_HOME}/.local/share/catgirl"
-
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..cc7e3bf98ea3d5e7f685ceedd080ba405a774d74
--- /dev/null
@@ -0,0 +1 @@
+../../../scripts/lib/constants_catgirl
\ No newline at end of file
diff --git a/bookworm/scripts/lib/constants_catgirl b/bookworm/scripts/lib/constants_catgirl
new file mode 100644 (file)
index 0000000..daa6b56
--- /dev/null
@@ -0,0 +1,4 @@
+. lib/constants_user  # PATH_USER_HOME
+
+PATH_USER_SHARE_CATGIRL="${PATH_USER_HOME}/.local/share/catgirl"
+
index 7819d84dc4b952131b3a4a7ef6dab706d60f4887..90a3a4c7ea67b1bba7cdf50c5412cefa5ff2ea14 100755 (executable)
@@ -13,8 +13,13 @@ SERVER="$1"
 echo '\nKnow host.\n'
 set +e
 ssh-keygen -f "${PATH_KNOWN_HOSTS}" -R "${SERVER}"
-set -e
 ssh-keyscan "${SERVER}" >> "${PATH_KNOWN_HOSTS}"
+RESULT=$?
+echo "DEBUG (why does script sometimes stop here if 'set -e' a bit earlier?): ${RESULT}"
+if [ "${RESULT}" != "0" ]; then
+    exit 1 
+fi
+set -e
 
 echo '\nAsking for new root password.\n'
 stty -echo