Explorar el Código

Return of the database password

Bob Mottram hace 7 años
padre
commit
e973bce5e0
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4
    0
      src/freedombone-restore-local

+ 4
- 0
src/freedombone-restore-local Ver fichero

@@ -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