--- src/common/confs/init-lua.conf.orig 2026-05-10 09:52:37 UTC +++ src/common/confs/init-lua.conf @@ -44,7 +44,7 @@ init_by_lua_block { -- Load plugins into the internalstore logger:log(NOTICE, "saving plugins into internalstore ...") local plugins = {} - local plugin_paths = { "/usr/share/bunkerweb/core", "/etc/bunkerweb/plugins", "/etc/bunkerweb/pro/plugins" } + local plugin_paths = { "/usr/share/bunkerweb/core", "/usr/local/etc/bunkerweb/plugins", "/usr/local/etc/bunkerweb/pro/plugins" } for i, plugin_path in ipairs(plugin_paths) do local paths = popen("find -L " .. plugin_path .. " -maxdepth 1 -type d ! -path " .. plugin_path) for path in paths:lines() do @@ -70,14 +70,14 @@ init_by_lua_block { -- Load variables into the internalstore logger:log(NOTICE, "saving variables into internalstore ...") - local file = open("/etc/nginx/variables.env") + local file = open("/usr/local/etc/nginx/variables.env") if not file then - logger:log(ERR, "can't open /etc/nginx/variables.env file") + logger:log(ERR, "can't open /usr/local/etc/nginx/variables.env file") return false end file:close() local all_variables = {} - for line in io.lines("/etc/nginx/variables.env") do + for line in io.lines("/usr/local/etc/nginx/variables.env") do local variable, value = line:match("^([^=]+)=(.*)$") if variable then all_variables[variable] = value