Changeset

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
parents 2385:470004f8f4ed
children 2387:92264ee3a0e4
files util/prosodyctl.lua
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
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