Explorar o código

Merge pull request #7 from Gottox/master

Don't show plain password in Settings screen.
Juan RP %!s(int64=11) %!d(string=hai) anos
pai
achega
03a215e616
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      installer.sh.in

+ 4 - 1
installer.sh.in

@@ -923,7 +923,10 @@ menu() {
 
     if [ $? -eq 3 ]; then
         # Show settings
-        DIALOG --title "Saved settings for installation" --textbox $CONF_FILE 14 60
+        cp $CONF_FILE /tmp/conf_hidden.$$;
+        sed -i "s/^ROOTPASSWORD.*/ROOTPASSWORD <-hidden->/" /tmp/conf_hidden.$$
+        DIALOG --title "Saved settings for installation" --textbox /tmp/conf_hidden.$$ 14 60
+        rm /tmp/conf_hidden.$$
         return
     fi