|
|
|
@ -7,7 +7,7 @@ while [ -z "${MISTBORN_DEFAULT_PASSWORD}" ]; do |
|
|
|
read -p "(Mistborn) Set default admin password: " -s MISTBORN_DEFAULT_PASSWORD |
|
|
|
read -p "(Mistborn) Set default admin password: " -s MISTBORN_DEFAULT_PASSWORD |
|
|
|
echo |
|
|
|
echo |
|
|
|
|
|
|
|
|
|
|
|
if [[ ${MISTBORN_DEFAULT_PASSWORD} =~ ^[A-Za-z_]+$ ]]; then |
|
|
|
if [[ ${MISTBORN_DEFAULT_PASSWORD} =~ ^[A-Za-z0-9_]+$ ]]; then |
|
|
|
# it matches |
|
|
|
# it matches |
|
|
|
echo "(Mistborn) Password is accepted" |
|
|
|
echo "(Mistborn) Password is accepted" |
|
|
|
else |
|
|
|
else |
|
|
|
|