diff options
author | Dane Smith <c1pher@gentoo.org> | 2012-02-01 18:42:22 -0500 |
---|---|---|
committer | Dane Smith <c1pher@gentoo.org> | 2012-02-01 18:42:22 -0500 |
commit | 558132e16aa2e02df94052c1beec247845facfd8 (patch) | |
tree | d3a35ca85896091288619ae8657c636c93eabc39 /www-apps/indefero/files | |
parent | Drop useless files before install. (diff) | |
download | c1pher-558132e16aa2e02df94052c1beec247845facfd8.tar.gz c1pher-558132e16aa2e02df94052c1beec247845facfd8.tar.bz2 c1pher-558132e16aa2e02df94052c1beec247845facfd8.zip |
Add bootstrap and some helper scripts for install.
Diffstat (limited to 'www-apps/indefero/files')
-rw-r--r-- | www-apps/indefero/files/bootstrap.php | 22 | ||||
-rwxr-xr-x | www-apps/indefero/files/dbsetup.sh | 3 | ||||
-rw-r--r-- | www-apps/indefero/files/postinstall-en-1.2.txt | 29 |
3 files changed, 54 insertions, 0 deletions
diff --git a/www-apps/indefero/files/bootstrap.php b/www-apps/indefero/files/bootstrap.php new file mode 100644 index 0000000..e1ee96f --- /dev/null +++ b/www-apps/indefero/files/bootstrap.php @@ -0,0 +1,22 @@ +<?php +set_include_path("/usr/share/php/pluf"); + +require '/<PATH TO INDEFERO>/src/IDF/conf/path.php'; +require 'Pluf.php'; + +Pluf::start('/<PATH TO INDEFERO>/src/IDF/conf/idf.php'); +Pluf_Dispatcher::loadControllers(Pluf::f('idf_views')); + +$user = new Pluf_User(); +$user->first_name = 'Foo'; +$user->last_name = 'Bar'; // Required! +$user->login = 'foobar'; // must be lowercase! +$user->email = 'foo@bar.com'; +$user->password = 'foobarbaz'; // the password is salted/hashed +// in the database, so do not worry :) +$user->administrator = true; +$user->active = true; +$user->create(); +print "Bootstrap ok\n"; +?> + diff --git a/www-apps/indefero/files/dbsetup.sh b/www-apps/indefero/files/dbsetup.sh new file mode 100755 index 0000000..690f490 --- /dev/null +++ b/www-apps/indefero/files/dbsetup.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +php /usr/share/php/pluf/src/migrate.php --conf=src/IDF/conf/idf.php -a -d diff --git a/www-apps/indefero/files/postinstall-en-1.2.txt b/www-apps/indefero/files/postinstall-en-1.2.txt new file mode 100644 index 0000000..3ceb078 --- /dev/null +++ b/www-apps/indefero/files/postinstall-en-1.2.txt @@ -0,0 +1,29 @@ +Setting up Indefero +=================== + +1) First, using your database of choice, set up a database, username, and +passord for Indefero. + +ie: If using mysql: + 1) mysql -u root -h localhost -p + 2) create user '<username for indefero>'@'localhost' identified by + '<password for indefero>'; + 3) create database <database for indefero>; + 4) grant all on <database for indefero>.* to '<username for + indefero>'@'localhost'; + +2) Depending on where Indefero was installed to (if no USE="vhost" it will be +under /var/www/localhost/htdocs), edit the file <path to +indefero>/src/IDF/conf/idf.php . Make sure to use the values for the database +that you used in step 1. + +3) To actually create the needed tables for indefero, cd <path to indefero> +and run scrips/dbsetup.sh. + +4) Lastly, edit <path to indefero>/www/bootstrap.php. Change the places where +it says <PATH TO INDEFERO> to point to the install you're using. Then update +it to use a username / password of your choice. Then run php <path to indefero>/www/bootstrap.php. +When this is done and you see the success, rm <path to +indefero>/www/bootstrap.php. + + |