Browse Source

Return of the database password

Bob Mottram 7 years ago
parent
commit
e973bce5e0
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/freedombone-restore-local

+ 4
- 0
src/freedombone-restore-local View File

44
     PROJECT_INSTALL_DIR=/usr/bin
44
     PROJECT_INSTALL_DIR=/usr/bin
45
 fi
45
 fi
46
 
46
 
47
+# MariaDB password
48
+DATABASE_PASSWORD=$(${PROJECT_NAME}-pass -u root -a mariadb)
49
+
47
 function please_wait {
50
 function please_wait {
48
         local str width height length
51
         local str width height length
49
 
52
 
230
             echo $"Ensure MariaDB handles authentication"
233
             echo $"Ensure MariaDB handles authentication"
231
             MARIADB_PASSWORD=$(${PROJECT_NAME}-pass -u root -a mariadb)
234
             MARIADB_PASSWORD=$(${PROJECT_NAME}-pass -u root -a mariadb)
232
             mariadb_fix_authentication
235
             mariadb_fix_authentication
236
+            DATABASE_PASSWORD=$(${PROJECT_NAME}-pass -u root -a mariadb)
233
         fi
237
         fi
234
         rm -rf $temp_restore_dir
238
         rm -rf $temp_restore_dir
235
     fi
239
     fi