From 636f7af8efeb21d69ca8c5ac7fdd41441a5f1d88 Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 17 Dec 2022 21:34:16 +0800 Subject: [PATCH] up --- plugins/mariadb/index.py | 3 +++ plugins/mysql-apt/index.py | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/plugins/mariadb/index.py b/plugins/mariadb/index.py index d2db745b2..2c54bcca1 100755 --- a/plugins/mariadb/index.py +++ b/plugins/mariadb/index.py @@ -814,6 +814,9 @@ def getDbBackupList(): r = getDbBackupListFunc(args['name']) bkDir = mw.getBackupDir() + '/database/mariadb' + if not os.path.exists(bkDir): + os.mkdir(bkDir) + rr = [] for x in range(0, len(r)): p = bkDir + '/' + r[x] diff --git a/plugins/mysql-apt/index.py b/plugins/mysql-apt/index.py index 5e8cc5ee3..33afcee82 100755 --- a/plugins/mysql-apt/index.py +++ b/plugins/mysql-apt/index.py @@ -650,7 +650,11 @@ def __createUser(dbname, username, password, address): def getDbBackupListFunc(dbname=''): + bkDir = mw.getBackupDir() + '/database/mysql-apt' + if not os.path.exists(bkDir): + os.mkdir(bkDir) + blist = os.listdir(bkDir) r = []