# HG changeset patch # User Brian Cully # Date 1261414332 0 # Node ID bfb093a0df1e096ef905eada398cef188d8f8ca0 # Parent 470004f8f4ed901e4156215f95cd579c0bc70e9f util.prosodyctl: Saner determination of Prosody executable path diff -r 470004f8f4ed -r bfb093a0df1e util/prosodyctl.lua --- 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