Tidying
This commit is contained in:
parent
24e7f3b972
commit
d27efc5dba
|
@ -115,7 +115,8 @@ function get_mariadb_password {
|
|||
if [ -f $DATABASE_PASSWORD_FILE ]; then
|
||||
MARIADB_PASSWORD=$(cat $DATABASE_PASSWORD_FILE)
|
||||
${PROJECT_NAME}-pass -u root -a mariadb -p "$MARIADB_PASSWORD"
|
||||
if [[ "$(${PROJECT_NAME}-pass -u root -a mariadb)" == "$MARIADB_PASSWORD" ]]; then
|
||||
stored_password=$(${PROJECT_NAME}-pass -u root -a mariadb)
|
||||
if [[ "$stored_password" == "$MARIADB_PASSWORD" ]]; then
|
||||
shred -zu $DATABASE_PASSWORD_FILE
|
||||
echo $'MariaDB password moved into password store'
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue