[Hampshire] bash script code

Αρχική Σελίδα

Reply to this message
Συντάκτης: Richard Mace
Ημερομηνία:  
Προς: 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