mirror of
https://github.com/myvesta/vesta
synced 2025-08-01 20:34:41 -07:00
gen_pass() in pma.sh
This commit is contained in:
parent
710cc25148
commit
cce2122fb5
1 changed files with 12 additions and 1 deletions
|
@ -10,6 +10,17 @@
|
|||
# Changed some lines to fit to Hestia Configuration.
|
||||
#
|
||||
|
||||
# Defining password-gen function
|
||||
gen_pass() {
|
||||
MATRIX='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
|
||||
LENGTH=10
|
||||
while [ ${n:=1} -le $LENGTH ]; do
|
||||
PASS="$PASS${MATRIX:$(($RANDOM%${#MATRIX})):1}"
|
||||
let n+=1
|
||||
done
|
||||
echo "$PASS"
|
||||
}
|
||||
|
||||
PASS=$(gen_pass)
|
||||
|
||||
#ubuntu phpmyadmin path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue