Re: Use pear as installation library
| From: | Chen Xiongjie | Date: | Wed, 04 May 2011 14:42:25 +0000 |
| Subject: | Re: Use pear as installation library | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-31107@lists.php.net to get a copy of this message | ||
On May 4, 2011, at 4:37 PM, Brett Bieber wrote:
>
>
> On Wed, May 4, 2011 at 9:31 AM, Ferenc Kovacs <info@tyrael.hu> wrote:
>
>
> On Wed, May 4, 2011 at 4:16 PM, Chen Xiongjie <chen.xcmail@gmail.com> wrote:
> Thank you Brett.
>
> But how about artifact which contains database change, other php execution behavior? I mean the
> need is not just copy resource to target, but also execute some script (php script/shell script).
>
> It seems that pear is good for distributing library, but it's not a good platform for
> high-customized installation(like some need for rpm/bitnami, ).
>
>
>
> http://pear.php.net/manual/en/pyrus.differences.postinstallscripts.php
>
> Tyrael
>
> Yep. The PEAR installer & Pyrus support post-install scripts which can do anything PHP can
> do.
>
> --
> Brett Bieber
If I understand correctly the postinstallscript is for user input (maybe you can execute some php
file in pyrus). But even if it's flexible enough for customized logic, the task is for file,
right? Can we implement something like
<insall>
<copyfile>
...
</copyfile>
<execute type="shell">databasecheck.sh</execute>
<execute type="php">install.php</execute>
</install>
which are totally not file related task?
Sorry I'm new in PEAR.
--