Skip to content
Snippets Groups Projects
Commit b068fa94 authored by Bob Mottram's avatar Bob Mottram
Browse files

Simplify

parent 6096ac3b
No related branches found
No related tags found
No related merge requests found
...@@ -205,16 +205,9 @@ function change_xmpp_settings { ...@@ -205,16 +205,9 @@ function change_xmpp_settings {
} }
function allow_ssh_passwords { function allow_ssh_passwords {
if [[ $SSH_PASSWORDS == "yes" ]]; then dialog --title $"SSH Passwords" \
dialog --title $"SSH Passwords" \ --backtitle $"Freedombone Security Configuration" \
--backtitle $"Freedombone Security Configuration" \ --yesno $"\nAllow SSH login using passwords?" 7 60
--yesno $"\nAllow SSH login using passwords?" 7 60
else
dialog --title $"SSH Passwords" \
--backtitle $"Freedombone Security Configuration" \
--defaultno \
--yesno $"\nAllow SSH login using passwords?" 7 60
fi
sel=$? sel=$?
case $sel in case $sel in
0) SSH_PASSWORDS="yes";; 0) SSH_PASSWORDS="yes";;
...@@ -738,6 +731,8 @@ function menu_security_settings { ...@@ -738,6 +731,8 @@ function menu_security_settings {
;; ;;
8) 8)
allow_ssh_passwords allow_ssh_passwords
change_ssh_settings
exit 0
;; ;;
9) 9)
exit 0 exit 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment