projects
/
hvlinux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Réglé problème installation directory lesstif
[hvlinux.git]
/
stage5
/
pkg
/
php
diff --git
a/stage5/pkg/php
b/stage5/pkg/php
index
ad91548
..
87f343b
100644
(file)
--- a/
stage5/pkg/php
+++ b/
stage5/pkg/php
@@
-48,13
+48,11
@@
hvbuild_post()
# To enable PHP support in the Apache web server, a new AddType directive
# must be added to the httpd.conf file.
# To enable PHP support in the Apache web server, a new AddType directive
# must be added to the httpd.conf file.
- if ! grep "application/x-httpd-php" /etc/apache/httpd.conf \
- 1> /dev/null 2>&1; then
+ if ! grep -q "application/x-httpd-php" /etc/apache/httpd.conf; then
echo "AddType application/x-httpd-php .php" >> /etc/apache/httpd.conf
fi
echo "AddType application/x-httpd-php .php" >> /etc/apache/httpd.conf
fi
- if ! grep "DirectoryIndex" /etc/apache/httpd.conf | grep "index.php" \
- 1> /dev/null 2>&1; then
+ if ! grep -q "DirectoryIndex" /etc/apache/httpd.conf | grep "index.php"; then
sed -i -e "s!\(^DirectoryIndex index.html.*\)!\1 index.php!g" \
/etc/apache/httpd.conf
fi
sed -i -e "s!\(^DirectoryIndex index.html.*\)!\1 index.php!g" \
/etc/apache/httpd.conf
fi