diff options
Diffstat (limited to 'www-apps/knowledgetree/files')
-rw-r--r-- | www-apps/knowledgetree/files/config-hook-3.1.0.sh | 7 | ||||
-rw-r--r-- | www-apps/knowledgetree/files/postinstall-en-3.1.0.txt | 41 | ||||
-rw-r--r-- | www-apps/knowledgetree/files/postupgrade-en-3.1.0.txt | 19 |
3 files changed, 67 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 diff --git a/www-apps/knowledgetree/files/postinstall-en-3.1.0.txt b/www-apps/knowledgetree/files/postinstall-en-3.1.0.txt new file mode 100644 index 0000000..a7e0c02 --- /dev/null +++ b/www-apps/knowledgetree/files/postinstall-en-3.1.0.txt @@ -0,0 +1,41 @@ +------------------------------------------------------------------------ +INSTALLATION + +The ebuild installs most parts of knowledgeTree automatically, but +you will have to create a database for the document management system. + +You can do this using the following commands as the mysql root user: + +> mysql -u root -p <<EOF + CREATE DATABASE dms; + GRANT SELECT, INSERT, UPDATE, DELETE ON dms.* TO 'dms'@'localhost' IDENTIFIED BY 'djw9281js'; + FLUSH PRIVILEGES; +EOF + +> mysql -u root -p <<EOF + GRANT ALL PRIVILEGES ON dms.* TO 'dmsadmin'@'localhost' IDENTIFIED BY 'js9281djw'; + FLUSH PRIVILEGES; +EOF + +Please do not forget to choose a different password than +'js9281djw'. This is just the standard password stored as a default in +${MY_INSTALLDIR}/config/config.ini. + +Now as user "dmsadmin": + +> mysql -u dmsadmin -pjs9281djw dms < ${MY_HTDOCSDIR}/sql/mysql/install/structure.sql +> mysql -u dmsadmin -pjs9281djw dms < ${MY_HTDOCSDIR}/sql/mysql/install/data.sql + +Now you need to set the MySQL passwords for the dms and dmsadmin user +in the ${MY_INSTALLDIR}/config/config.ini file so that knowledgeTree +can access the database. + +Finally you can go to http://${VHOST_HOSTNAME}/${VHOST_APPDIR} and log in +as user "admin" with the password "admin". + +------------------------------------------------------------------------ +!!! PHP4 !!! + +This is a php4 application. Do not try to run it under php5. It will fail! + +------------------------------------------------------------------------ diff --git a/www-apps/knowledgetree/files/postupgrade-en-3.1.0.txt b/www-apps/knowledgetree/files/postupgrade-en-3.1.0.txt new file mode 100644 index 0000000..47a2ba0 --- /dev/null +++ b/www-apps/knowledgetree/files/postupgrade-en-3.1.0.txt @@ -0,0 +1,19 @@ +------------------------------------------------------------------------ +UPGRADE + +If you are upgrading from knowledgetree-2.* and had customizations in +your environment.php you will need to transfer these to the new +config.ini which now holds all configuration values. + +YOU ARE ADVISED TO BACKUP YOUR OLD DATABASE BEFORE UPGRADING!!! + +Now go to http://${VHOST_HOSTNAME}/${VHOST_APPDIR}/setup/upgrade.php +and press the "upgrade" button. + +------------------------------------------------------------------------ +!!! PHP4 !!! + +This is still a php4 application. Do not try to run it under php5. It +will fail! +------------------------------------------------------------------------ + |