Pārlūkot izejas kodu

Return of the database password

Bob Mottram 7 gadus atpakaļ
vecāks
revīzija
e973bce5e0
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4
    0
      src/freedombone-restore-local

+ 4
- 0
src/freedombone-restore-local Parādīt failu

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