[Hampshire] bash script code

トップ ページ

このメッセージに返信
著者: Richard Mace
日付:  
To: hampshire
題目: [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