Re: [Hampshire] bash script code

Startseite

Nachricht beantworten
Autor: Richard Mace
Datum:  
To: Hampshire LUG Discussion List
Betreff: 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