equal
deleted
inserted
replaced
41 CFG_DATADIR = CFG_DATADIR:gsub("^~", os.getenv("HOME")); |
41 CFG_DATADIR = CFG_DATADIR:gsub("^~", os.getenv("HOME")); |
42 end |
42 end |
43 end |
43 end |
44 |
44 |
45 ----------- |
45 ----------- |
|
46 |
|
47 -- Check before first require, to preempt the probable failure |
|
48 if _VERSION < "Lua 5.2" then |
|
49 io.stderr:write("Prosody is no longer compatible with Lua 5.1\n") |
|
50 io.stderr:write("See https://prosody.im/doc/depends#lua for more information\n") |
|
51 return os.exit(1); |
|
52 end |
46 |
53 |
47 local startup = require "util.startup"; |
54 local startup = require "util.startup"; |
48 startup.prosodyctl(); |
55 startup.prosodyctl(); |
49 |
56 |
50 ----------- |
57 ----------- |