From b99fb27df551217c2d15dfd0cd2ea486eaf8cb66 Mon Sep 17 00:00:00 2001 From: bunkerity Date: Thu, 22 Jul 2021 09:29:15 +0200 Subject: [PATCH] fix missing parameter when calling reload in autoconf and edit REMOTE_PHP_PATH regex --- autoconf/AutoConf.py | 2 +- settings.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/autoconf/AutoConf.py b/autoconf/AutoConf.py index cea1b83..5651e6b 100644 --- a/autoconf/AutoConf.py +++ b/autoconf/AutoConf.py @@ -173,7 +173,7 @@ class AutoConf : self.__servers[id].reload() utils.log("[*] Deactivating config for " + vars["SERVER_NAME"]) self.__gen_env() - if self.__config.reload() : + if self.__config.reload(self.__instances) : utils.log("[*] Deactivated config for " + vars["SERVER_NAME"]) else : utils.log("[!] Can't deactivate config for " + vars["SERVER_NAME"]) diff --git a/settings.json b/settings.json index ccfc4e9..ea86aca 100644 --- a/settings.json +++ b/settings.json @@ -983,7 +983,7 @@ "env": "REMOTE_PHP_PATH", "id": "remote-php-path", "label": "Remote php path", - "regex": "^/([A-Za-z0-9\\-]/?)*$", + "regex": "^/([a-zA-Z\\-0-9\\_\\./])*$", "type": "text" }, { @@ -992,7 +992,7 @@ "env": "LOCAL_PHP", "id": "local-php", "label": "local php", - "regex": "^([a-zA-Z\\-0-9\\_\\./])*$", + "regex": "^/([a-zA-Z\\-0-9\\_\\./])*$", "type": "text" }, {