Bob Mottram 8 yıl önce
ebeveyn
işleme
d27efc5dba
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2
    1
      src/freedombone-utils-database

+ 2
- 1
src/freedombone-utils-database Dosyayı Görüntüle

@@ -115,7 +115,8 @@ function get_mariadb_password {
115 115
     if [ -f $DATABASE_PASSWORD_FILE ]; then
116 116
         MARIADB_PASSWORD=$(cat $DATABASE_PASSWORD_FILE)
117 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 120
             shred -zu $DATABASE_PASSWORD_FILE
120 121
             echo $'MariaDB password moved into password store'
121 122
             return