From ec7bd5e4526ea86c36d2c816392a0c965fcb55ec Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 21 Nov 2021 15:14:21 +0800 Subject: [PATCH] Update index.py --- plugins/mysql/index.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index 682de9f95..a5b718d83 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -1821,7 +1821,11 @@ def fullSync(version=''): if __name__ == "__main__": func = sys.argv[1] - version = sys.argv[2] + + version = "5.6" + if (len(sys.argv) > 2): + version = sys.argv[2] + if func == 'status': print(status(version)) elif func == 'start':