From e287086b36f37f625eec2a8a24decb965799aeb4 Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 17 Dec 2022 21:58:07 +0800 Subject: [PATCH] Update index.py --- plugins/postgresql/index.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/postgresql/index.py b/plugins/postgresql/index.py index 82b6db6bd..8079f70da 100755 --- a/plugins/postgresql/index.py +++ b/plugins/postgresql/index.py @@ -70,12 +70,11 @@ def getArgs(): def getBackupDir(): - bk_path = mw.getBackupDir() + "/pg" + bk_path = mw.getBackupDir() + "/databases/postgresql" if not os.path.isdir(bk_path): - mw.execShell("mkdir -p {}/upload".format(bk_path)) + mw.execShell("mkdir -p {}".format(bk_path)) - bk_path_upload = bk_path + "/upload" - return bk_path_upload + return bk_path def checkArgs(data, ck=[]):