<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,7 @@
+2008-07-08  Badlop  &lt;badlop@process-one.net&gt;
+
+	* tools/ejabberdctl: Work also when 'which' is unavailable
+
 2008-07-08  Christophe Romain  &lt;christophe.romain@process-one.net&gt;
 
 	* src/web/ejabberd_http_poll.erl: improve ip fetching patch</diff>
      <filename>ChangeLog</filename>
    </modified>
    <modified>
      <diff>@@ -4,7 +4,8 @@ NODE=ejabberd
 HOST=localhost
 
 # Define ejabberd environment
-base=&quot;`dirname $(which &quot;$0&quot;)`/..&quot;
+here=`which &quot;$0&quot; 2&gt;/dev/null || echo .`
+base=&quot;`dirname $here`/..&quot;
 ROOTDIR=`(cd &quot;$base&quot;; echo $PWD)`
 SASL_LOG_PATH=$ROOTDIR/sasl.log
 EJABBERD_DB=$ROOTDIR/database/$NODE</diff>
      <filename>tools/ejabberdctl</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2228eb0539b2d6d312333859cca022b8e1b251b2</id>
    </parent>
  </parents>
  <author>
    <name>badlop</name>
    <email>badlop@1613c18e-e6f4-0310-972c-c3fad1d2be73</email>
  </author>
  <url>http://github.com/bjc/ejabberd/commit/b2cb9eff088f5b41fd591924ebfcb20b48be6703</url>
  <id>b2cb9eff088f5b41fd591924ebfcb20b48be6703</id>
  <committed-date>2008-07-08T04:07:45-07:00</committed-date>
  <authored-date>2008-07-08T04:07:45-07:00</authored-date>
  <message>	* tools/ejabberdctl: Work also when 'which' is unavailable


git-svn-id: https://svn.process-one.net/ejabberd/branches/ejabberd-2.0.x@1419 1613c18e-e6f4-0310-972c-c3fad1d2be73</message>
  <tree>16d0e9cb6563ca835acd86063535513adce8c1e2</tree>
  <committer>
    <name>badlop</name>
    <email>badlop@1613c18e-e6f4-0310-972c-c3fad1d2be73</email>
  </committer>
</commit>
