Software /
code /
prosody
Diff
util/prosodyctl.lua @ 2386:bfb093a0df1e
util.prosodyctl: Saner determination of Prosody executable path
author | Brian Cully <bjc@junctionnetworks.com> |
---|---|
date | Mon, 21 Dec 2009 16:52:12 +0000 |
parent | 1522:569d58d21612 |
child | 2446:62aa1b465e05 |
line wrap: on
line diff
--- a/util/prosodyctl.lua Mon Dec 21 06:37:58 2009 +0500 +++ b/util/prosodyctl.lua Mon Dec 21 16:52:12 2009 +0000 @@ -102,10 +102,8 @@ end if not CFG_SOURCEDIR then os.execute("./prosody"); - elseif CFG_SOURCEDIR:match("^/usr/local") then - os.execute("/usr/local/bin/prosody"); else - os.execute("prosody"); + os.execute(CFG_SOURCEDIR.."/../../bin/prosody"); end return true; end