From 43a849303860d7d51cddc3a09a8205df6aa894b2 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 27 Jun 2017 19:51:44 +0100 Subject: [PATCH] Show database password --- src/freedombone-controlpanel | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/freedombone-controlpanel b/src/freedombone-controlpanel index 47c4139f..81e91712 100755 --- a/src/freedombone-controlpanel +++ b/src/freedombone-controlpanel @@ -195,6 +195,9 @@ function passwords_show_apps { name+=("$a") fi done + i=$((i+1)) + W+=($i "mariadb") + name+=("mariadb") selected_app_index=$(dialog --backtitle $"Freedombone Control Panel" --title $"Select App" --menu $"Select one of the following:" 24 40 17 "${W[@]}" 3>&2 2>&1 1>&3) @@ -245,6 +248,12 @@ function view_or_change_passwords { fi fi + if [[ "${SELECTED_APP}" == 'mariadb' ]]; then + dialog --title $"MariaDB database password" \ + --msgbox $"${CURR_PASSWORD}" 6 50 + return + fi + data=$(tempfile 2>/dev/null) trap "rm -f $data" 0 1 2 5 15 dialog --title "$titlestr" \