From 091c51726315eb752f652bb3347fcd6f4eee0631 Mon Sep 17 00:00:00 2001 From: Eric Claeys <83164203+EricClaeys@users.noreply.github.com> Date: Sun, 4 Aug 2024 16:48:19 -0600 Subject: [PATCH] Update makeChanges.sh: Warn when disabling "uselogin" --- scripts/makeChanges.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/makeChanges.sh b/scripts/makeChanges.sh index 1348e2db7..35c192dbb 100755 --- a/scripts/makeChanges.sh +++ b/scripts/makeChanges.sh @@ -763,6 +763,15 @@ do fi ;; + "uselogin") + if [[ ${NEW_VALUE} == "false" ]]; then + echo -ne "${wWARNING}" + echo -n "WARNING: Disabling '${LABEL}' should NOT be done if your Pi is" + echo -n " accessible on the Internet. It's a HUGE security risk!" + echo -e "${wNC}" + fi + ;; + *) echo -e "${wWARNING}" echo "WARNING: Unknown key '${KEY}'; ignoring. Old=${OLD_VALUE}, New=${NEW_VALUE}"