Fix verb/action mismatch

master
BrainwreckedTech 2 years ago
parent 456abf0c06
commit 4fe5617a24

@ -4,10 +4,10 @@
case "${1}" in case "${1}" in
on|yes|enable|unlock) on|yes|enable|unlock)
FROM=yes; TO=no; FROM=no; TO=yes
;; ;;
off|no|disable|lock) off|no|disable|lock)
FROM=no; TO=yes; FROM=yes; TO=no
;; ;;
toggle) toggle)
if grep -q '^PasswordAuthentication yes' /etc/ssh/sshd_config; then if grep -q '^PasswordAuthentication yes' /etc/ssh/sshd_config; then

Loading…
Cancel
Save