Bob Mottram il y a 8 ans
Parent
révision
d27efc5dba
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2
    1
      src/freedombone-utils-database

+ 2
- 1
src/freedombone-utils-database Voir le fichier

115
     if [ -f $DATABASE_PASSWORD_FILE ]; then
115
     if [ -f $DATABASE_PASSWORD_FILE ]; then
116
         MARIADB_PASSWORD=$(cat $DATABASE_PASSWORD_FILE)
116
         MARIADB_PASSWORD=$(cat $DATABASE_PASSWORD_FILE)
117
         ${PROJECT_NAME}-pass -u root -a mariadb -p "$MARIADB_PASSWORD"
117
         ${PROJECT_NAME}-pass -u root -a mariadb -p "$MARIADB_PASSWORD"
118
-        if [[ "$(${PROJECT_NAME}-pass -u root -a mariadb)" == "$MARIADB_PASSWORD" ]]; then
118
+        stored_password=$(${PROJECT_NAME}-pass -u root -a mariadb)
119
+        if [[ "$stored_password" == "$MARIADB_PASSWORD" ]]; then
119
             shred -zu $DATABASE_PASSWORD_FILE
120
             shred -zu $DATABASE_PASSWORD_FILE
120
             echo $'MariaDB password moved into password store'
121
             echo $'MariaDB password moved into password store'
121
             return
122
             return