Show database password
This commit is contained in:
parent
cc7f493e56
commit
43a8493038
|
@ -195,6 +195,9 @@ function passwords_show_apps {
|
||||||
name+=("$a")
|
name+=("$a")
|
||||||
fi
|
fi
|
||||||
done
|
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)
|
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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "${SELECTED_APP}" == 'mariadb' ]]; then
|
||||||
|
dialog --title $"MariaDB database password" \
|
||||||
|
--msgbox $"${CURR_PASSWORD}" 6 50
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
data=$(tempfile 2>/dev/null)
|
data=$(tempfile 2>/dev/null)
|
||||||
trap "rm -f $data" 0 1 2 5 15
|
trap "rm -f $data" 0 1 2 5 15
|
||||||
dialog --title "$titlestr" \
|
dialog --title "$titlestr" \
|
||||||
|
|
Loading…
Reference in New Issue