[Hampshire] bash script code

Top Page

Reply to this message
Author: Richard Mace
Date:  
To: hampshire
Subject: [Hampshire] bash script code
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
fi

Produces this error:

80: Syntax error: end of file unexpected (expecting "fi")
Cheers
Richard