From 305fa78f77b29f36d2502ce1d512f0941eda7278 Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 6 Jul 2022 13:10:19 +0800 Subject: [PATCH] Update index.py --- plugins/mysql-ya/index.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/mysql-ya/index.py b/plugins/mysql-ya/index.py index 73dff3084..d90dddc53 100755 --- a/plugins/mysql-ya/index.py +++ b/plugins/mysql-ya/index.py @@ -144,6 +144,10 @@ def initDreplace(version=''): if not os.path.exists(mysql_conf_dir): os.mkdir(mysql_conf_dir) + mysql_data_dir = getServerDir() + '/data' + if not os.path.exists(mysql_data_dir): + os.mkdir(mysql_data_dir) + mysql_tmp = getServerDir() + '/tmp' if not os.path.exists(mysql_tmp): os.mkdir(mysql_tmp)