util.prosodyctl: Saner determination of Prosody executable path
authorBrian Cully <bjc@junctionnetworks.com>
Mon, 21 Dec 2009 16:52:12 +0000 (16:52 +0000)
committerBrian Cully <bjc@junctionnetworks.com>
Mon, 21 Dec 2009 16:52:12 +0000 (16:52 +0000)
util/prosodyctl.lua

index b24e194dad769d2fc5c9c46416f10670a1d7b0cb..e44c78d7d14f69c2b6feaf1c0aa3f717f1655cff 100644 (file)
@@ -102,10 +102,8 @@ function start()
        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