Re: Re: Question about writing custom task for installer

From: Date: Sun, 06 Jan 2008 13:28:19 +0000
Subject: Re: Re: Question about writing custom task for installer
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-28413@lists.php.net to get a copy of this message
Gregory Beaver wrote:
Hi Dmitri, The file name would be as you suspect PEAR/Task/Setchmod.php, and it is only possible to change permissions if you set the $type = 'script' in your PEAR_Task_Setchmod class definition (look at PEAR/Task/Postinstallscript.php compared to PEAR/Task/Windowseol.php to see what I'm talking about if you're confused), as this will make the task run after installation has completed. any changes run before will be erased by the chmod file transaction. Greg Thank you. From reading your book I got the idea that I suppose to set the $type = 'multiple' for this task
This is because 'multiple' is run after the file has already been installed. Why do you say it must be a type 'script'? Why 'multiple' will not work? Thank you again for replying. -- Open Source ALL content management with streaming video http://wiki.sharedlog.com

« previous php.pear.general (#28413) next »