SIEMbitwardendnscrypthome assistantjellyfinjitsimulti-factor authenticationnextcloudonlyofficepiholeraspberry pirocket.chatsyncthingtorwazuhwireguard
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
524 B
19 lines
524 B
#!/bin/bash |
|
|
|
# INPUT default admin password |
|
while [ -z "${MISTBORN_DEFAULT_PASSWORD}" ]; do |
|
echo "(Mistborn) The default admin password may only container alphanumeric characters and _" |
|
read -p "(Mistborn) Set default admin password: " -s MISTBORN_DEFAULT_PASSWORD |
|
echo |
|
|
|
if [[ $s =~ ^[A-Za-z_]+$ ]]; then |
|
# it matches |
|
echo "(Mistborn) Password is accepted" |
|
else |
|
unset MISTBORN_DEFAULT_PASSWORD |
|
echo "(Mistborn) Try again" |
|
fi |
|
|
|
done |
|
|
|
echo "MISTBORN_DEFAULT_PASSWORD is set"
|
|
|