Skip to content

Commit

Permalink
Update makeChanges.sh: Warn when disabling "uselogin"
Browse files Browse the repository at this point in the history
  • Loading branch information
EricClaeys authored Aug 4, 2024
1 parent d9d2c5b commit 091c517
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/makeChanges.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 091c517

Please sign in to comment.