summary refs log tree commit diff
diff options
context:
space:
mode:
authorEnno Boland <g@s01.de>2014-05-07 18:57:25 +0200
committerEnno Boland <g@s01.de>2014-05-07 18:57:25 +0200
commit92be3725d81801bbfd144c11ead83c3ad0838622 (patch)
tree05e9519867d740ee0969547cd594c1615c565a2c
parent30c13a8fb4d4211332dc450edcc7057fa93309a9 (diff)
downloadhrmpf-92be3725d81801bbfd144c11ead83c3ad0838622.tar.gz
hrmpf-92be3725d81801bbfd144c11ead83c3ad0838622.tar.xz
hrmpf-92be3725d81801bbfd144c11ead83c3ad0838622.zip
Don't show plain password in Settings screen
-rw-r--r--installer.sh.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/installer.sh.in b/installer.sh.in
index a283d2e..9dfcd92 100644
--- a/installer.sh.in
+++ b/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