summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-apps/knowledgetree/files/config-hook-3.1.0.sh')
-rw-r--r--www-apps/knowledgetree/files/config-hook-3.1.0.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/www-apps/knowledgetree/files/config-hook-3.1.0.sh b/www-apps/knowledgetree/files/config-hook-3.1.0.sh
new file mode 100644
index 0000000..c6fe2e9
--- /dev/null
+++ b/www-apps/knowledgetree/files/config-hook-3.1.0.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+# Sets installation directory and hostname when installing knowledgeTree
+
+if [ $1 = "install" ]; then
+ cd ${MY_INSTALLDIR}/config
+ sed -i -e "s#rootUrl = default#rootUrl = \"${VHOST_APPDIR}\"#" config.ini
+fi