diff options
Diffstat (limited to 'network/dokuwiki/doinst.sh')
-rw-r--r-- | network/dokuwiki/doinst.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/network/dokuwiki/doinst.sh b/network/dokuwiki/doinst.sh index 57a1536f08..12e0a7537f 100644 --- a/network/dokuwiki/doinst.sh +++ b/network/dokuwiki/doinst.sh @@ -1,7 +1,7 @@ -# Remove comment -sed -i "s:#Include /etc/httpd/mod_php.conf:Include /etc/httpd/mod_php.conf:g" etc/httpd/httpd.conf +# Remove comment and enable php +sed -i "s:#Include /etc/httpd/mod_php.conf:Include /etc/httpd/mod_php.conf:g" /etc/httpd/httpd.conf -# If not exist line, send... -grep -q -e 'Dokuwiki' etc/httpd/httpd.conf || cat >> etc/httpd/httpd.conf <<'EOF' -Include /etc/httpd/extra/httpd-dokuwiki.conf -EOF +# not exist? send... +if ! grep -q -e 'dokuwiki' /etc/httpd/httpd.conf; then + echo "Include /etc/httpd/extra/httpd-dokuwiki.conf" >> /etc/httpd/httpd.conf +fi |