Compare commits
No commits in common. "bf417266136ad4cc8b73577988b7ae5c25d96e85" and "785283950f3483089ddb7da5c69818305881fde8" have entirely different histories.
bf41726613
...
785283950f
4 changed files with 5 additions and 14 deletions
|
|
@ -17,4 +17,3 @@
|
||||||
25a29c32,38a1108,main,2025-09-03T20:13:08Z,michael,git,lua-api
|
25a29c32,38a1108,main,2025-09-03T20:13:08Z,michael,git,lua-api
|
||||||
25a29c32,442b465,fix/systemd-type-forking,2025-09-05T15:02:31Z,michael,git,lua-api
|
25a29c32,442b465,fix/systemd-type-forking,2025-09-05T15:02:31Z,michael,git,lua-api
|
||||||
25a29c32,c15b01a,fix/config-path-consistency,2025-09-05T15:21:25Z,michael,git,lua-api
|
25a29c32,c15b01a,fix/config-path-consistency,2025-09-05T15:21:25Z,michael,git,lua-api
|
||||||
795f8867,78e8ded,fix/json-library-compatibility,2025-09-05T15:44:42Z,michael,git,lua-api
|
|
||||||
|
|
|
||||||
|
|
@ -59,12 +59,10 @@ $LUA_COMMAND -e "require('socket')" 2>/dev/null || {
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# JSON library check (cjson preferred, dkjson fallback)
|
$LUA_COMMAND -e "require('cjson')" 2>/dev/null || {
|
||||||
if ! ($LUA_COMMAND -e "require('cjson')" 2>/dev/null || $LUA_COMMAND -e "require('dkjson')" 2>/dev/null); then
|
echo -e "${RED}Error: lua-cjson not found${NC}"
|
||||||
echo -e "${RED}Error: No JSON library found${NC}"
|
|
||||||
echo "Install lua-cjson or lua-dkjson"
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
}
|
||||||
|
|
||||||
cd "$PROJECT_DIR"
|
cd "$PROJECT_DIR"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,7 @@
|
||||||
-- Dragons@Work Digital Sovereignty Project
|
-- Dragons@Work Digital Sovereignty Project
|
||||||
|
|
||||||
local socket = require("socket")
|
local socket = require("socket")
|
||||||
local found_cjson, cjson = pcall(require, 'cjson')
|
local cjson = require("cjson")
|
||||||
if not found_cjson then
|
|
||||||
cjson = require('dkjson')
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Load modules
|
-- Load modules
|
||||||
local Auth = require("src.auth")
|
local Auth = require("src.auth")
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,7 @@
|
||||||
-- API-Key determines mail configuration and recipient
|
-- API-Key determines mail configuration and recipient
|
||||||
-- Dragons@Work Digital Sovereignty Project
|
-- Dragons@Work Digital Sovereignty Project
|
||||||
|
|
||||||
local found_cjson, cjson = pcall(require, 'cjson')
|
local cjson = require("cjson")
|
||||||
if not found_cjson then
|
|
||||||
cjson = require('dkjson')
|
|
||||||
end
|
|
||||||
|
|
||||||
local MailRoute = {}
|
local MailRoute = {}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue