equal
deleted
inserted
replaced
41 if os.getenv("HOME") then |
41 if os.getenv("HOME") then |
42 CFG_DATADIR = CFG_DATADIR:gsub("^~", os.getenv("HOME")); |
42 CFG_DATADIR = CFG_DATADIR:gsub("^~", os.getenv("HOME")); |
43 end |
43 end |
44 end |
44 end |
45 |
45 |
46 if #arg > 0 and arg[1] ~= "--config" then |
46 |
47 print("Unknown command-line option: "..tostring(arg[1])); |
|
48 print("Perhaps you meant to use prosodyctl instead?"); |
|
49 return 1; |
|
50 end |
|
51 |
47 |
52 local startup = require "util.startup"; |
48 local startup = require "util.startup"; |
53 local async = require "util.async"; |
49 local async = require "util.async"; |
54 |
50 |
55 -- Note: it's important that this thread is not GC'd, as some C libraries |
51 -- Note: it's important that this thread is not GC'd, as some C libraries |