summaryrefslogtreecommitdiffstats
path: root/network/dokuwiki/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'network/dokuwiki/doinst.sh')
-rw-r--r--network/dokuwiki/doinst.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/network/dokuwiki/doinst.sh b/network/dokuwiki/doinst.sh
index 14d06020bc..57a1536f08 100644
--- a/network/dokuwiki/doinst.sh
+++ b/network/dokuwiki/doinst.sh
@@ -1,5 +1,7 @@
+# Remove comment
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'
-# Dokuwiki
Include /etc/httpd/extra/httpd-dokuwiki.conf
EOF