Re: [Hampshire] bash script code

Top Page

Reply to this message
Author: Richard Mace
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] bash script code
On 29/12/2007, Simon Huggins <huggie@???> wrote:
> On Sat, Dec 29, 2007 at 01:36:51PM +0000, Richard Mace wrote:
> > Could anyone tell me why the following code:
>
> > if ! grep 'AddType application/x-httpd-php .php'
> >  /etc/php5/apache2/apache2.conf; then
> > echo "AddType application/x-httpd-php .php" >> /etc/apache2/apache2.conf
> >   else
> > echo "Text \"AddType application/x-httpd-php .php\" was found in
> >    /etc/php5/apache2/apache2.conf
>                                        ^^
>                                        You need a " somewhere here.


Thank you Simon.
That sorted it :)
Richard