Re: go-pear new version
| From: | Antonio Carlos Venancio Junior | Date: | Mon, 25 Mar 2002 15:57:02 +0000 |
| Subject: | Re: go-pear new version | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-5101@lists.php.net to get a copy of this message | ||
Tomas,
How about to check if the user is root? If so I'm sending a patch. =)
On Mon, 2002-03-25 at 11:53, Christian Stocker wrote:
> On 25 Mar 2002, Tomas V.V.Cox wrote:
>
> > # Rev2 2002-03-25:
> > #
> > # - Added initial informative message
> > # - Added the ability to download all the files under php4/pear module
> > # - The user can now select where to place the 'pear' cmd
> >
> > So basically, when someone will do a:
> > lynx -source http://pear.php.net/~cox/go-pear | sh
> >
> > He will get a ready system to use the lastest PEAR DB, Mail, IT, ... and
> > also the PEAR Installer to start downloading and installing packages
> > from the web (more info on what are pear packages at:
> >
> > http://cvs.php.net/co.php/pearweb/doc/pear_package_manager.txt).
>
> great tool :)
>
> but
> ***
> sh: /usr/local/bin/pear: Permission denied
> chmod: changing permissions of `/usr/local/bin/pear': Operation not
> permitted
>
> The 'pear' command has been successfully installed under
> /usr/local/bin/pear
> try it typing '/usr/local/bin/pear' for help
> ***
>
> Yes, i didn't have permissions to install in /usr/local/bin/pear (so no
> problem with that), and there was already a pear in /usr/local/bin. maybe
> that's confusing for the installer (as it wasn't actually successful :) )
>
> chregu
>
>
>
> --
> nam...christian stocker adr...bremgartnerstr. 66, ch-8003 zurich
> pho...+41 1 451 6021 www...http://phant.ch/chregu
> mob...+41 76 561 8860 ema...chregu@phant.ch
> wor...+41 1 240 5670 gpg...0x5CE1DECB
>
>
> --
> PEAR Development Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Ate´
+++
Antonio CVS .: organiKa :.
"We use only recicled bits"
floripa@organiKa.com.br
http://www.organiKa.com.br
Key fingerprint = 9F5B 31B0 C52A 4C4D 3A37 3A9F 7304 2779 5BBE B073
--- go-pear Mon Mar 25 12:50:58 2002 +++ go-pear-root Mon Mar 25 12:52:36 2002 @@ -46,6 +46,12 @@ echo " http://cvs.php.net/co.php/pearweb/doc/pear_package_manager.txt" echo +whoami=$(whoami) +if [ $whoami != 'root' ]; then + echo "You need to be root to run the installer" +exit -1 +fi + php=$(type -p php) if [ ! $php ]; then echo "No php cgi binary found in PATH" Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
--- go-pear Mon Mar 25 12:50:58 2002 +++ go-pear-root Mon Mar 25 12:52:36 2002 @@ -46,6 +46,12 @@ echo " http://cvs.php.net/co.php/pearweb/doc/pear_package_manager.txt" echo +whoami=$(whoami) +if [ $whoami != 'root' ]; then + echo "You need to be root to run the installer" +exit -1 +fi + php=$(type -p php) if [ ! $php ]; then echo "No php cgi binary found in PATH" Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc