Bob Mottram il y a 8 ans
Parent
révision
b068fa94d5
1 fichiers modifiés avec 5 ajouts et 10 suppressions
  1. 5
    10
      src/freedombone-sec

+ 5
- 10
src/freedombone-sec Voir le fichier

205
 }
205
 }
206
 
206
 
207
 function allow_ssh_passwords {
207
 function allow_ssh_passwords {
208
-    if [[ $SSH_PASSWORDS == "yes" ]]; then
209
-        dialog --title $"SSH Passwords" \
210
-               --backtitle $"Freedombone Security Configuration" \
211
-               --yesno $"\nAllow SSH login using passwords?" 7 60
212
-    else
213
-        dialog --title $"SSH Passwords" \
214
-               --backtitle $"Freedombone Security Configuration" \
215
-               --defaultno \
216
-               --yesno $"\nAllow SSH login using passwords?" 7 60
217
-    fi
208
+    dialog --title $"SSH Passwords" \
209
+           --backtitle $"Freedombone Security Configuration" \
210
+           --yesno $"\nAllow SSH login using passwords?" 7 60
218
     sel=$?
211
     sel=$?
219
     case $sel in
212
     case $sel in
220
         0) SSH_PASSWORDS="yes";;
213
         0) SSH_PASSWORDS="yes";;
738
             ;;
731
             ;;
739
         8)
732
         8)
740
             allow_ssh_passwords
733
             allow_ssh_passwords
734
+            change_ssh_settings
735
+            exit 0
741
             ;;
736
             ;;
742
         9)
737
         9)
743
             exit 0
738
             exit 0