Fix verb/action mismatch
This commit is contained in:
parent
456abf0c06
commit
4fe5617a24
4
sshdpw
4
sshdpw
@ -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…
x
Reference in New Issue
Block a user