Fix mkdir by includ function an use after includes

This commit is contained in:
FusionPBX 2022-12-18 12:13:01 -07:00 committed by GitHub
parent fa8ef47510
commit 347874d42f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -7,12 +7,13 @@ else
service_name = proto
end
--make sure the scripts/run dir exists
mkdir(scripts_dir .. "/run");
require "resources.functions.config"
require "resources.functions.split"
require "resources.functions.trim";
require "resources.functions.mkdir";
--make sure the scripts/run dir exists
mkdir(scripts_dir .. "/run");
local log = require "resources.functions.log"[service_name]
local presence_in = require "resources.functions.presence_in"