瀏覽代碼

Return of the database password

Bob Mottram 7 年之前
父節點
當前提交
e973bce5e0
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      src/freedombone-restore-local

+ 4
- 0
src/freedombone-restore-local 查看文件

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