Bugs item #3232183, was opened at 2011-03-21 15:40
Message generated for change (Comment added) made by christian_boltz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=937964&aid=3232183&group_id=191583
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core
Group: SVN (please specify revision!)
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: john doe (johndoe64)
Assigned to: Nobody/Anonymous (nobody)
Summary: postfixadmin-cli wont find dependent php file
Initial Comment:
Looking for CLI tool of postfixadmin I found the wiki entry. If I do
Installed by source
chmod +x <path/to/postfixadmin/root>/scripts/postfixadmin-cli
ln -s <path/to/postfixadmin/root>/scripts/postfixadmin-cli /usr/bin/postfixadmin-cli
Call postfixadmin-cli
the result is:
Could not open input file: /usr/bin/postfixadmin-cli.php
----------------------------------------------------------------------
>Comment By: Christian Boltz (christian_boltz)
Date: 2011-03-21 20:38
Message:
You can use the parameter
-webroot /path/to/postfixadmin/scripts/
That said: We need a better way to handle this, but I'm not sure about the
best method. Possible options include:
- a config file in /etc/postfixadmin that holds the path
- test if $0 is a symlink, if yes, call readlink on it
- combination of both (if config file exists, use it, otherwise use
readlink)
- (other ideas?)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=937964&aid=3232183&group_id=191583
|