updated on Fri Jan 13 08:00:32 UTC 2012
[aur-mirror.git] / kingfisherqm / kingfisher.install
blob34af547ab34e21e879388801cb79c1241846bc52
1 _install_notes() {
2     echo
3     echo '---------------------------------------------------------------------------'
4     echo ' IMPORTANT NOTES:'
5     echo 
6     echo "IMPORTANT: Now, create tables in database with /usr/share/doc/kingfisher/kingfisher.pg.sql"
7     echo "And edit /etc/kingfisher/kingfisher.conf and /srv/http/kingfisher/inc/config.inc.php"
8     echo "Init Kingfisher Daemon with: /etc/rc.d/kingfisherd start"
9     echo "Configure httpd.conf and php.ini with pdo"
10     echo ""
11     echo "Ex. Create Database"
12     echo "$su postgres"
13     echo "$psql"
14     echo "postgres=# CREATE DATABASE kingfisher;"
15     echo "postgres=# CREATE USER kingfisher;"
16     echo "postgres=# \password kingfisher;"
17     echo "postgres=# \i /usr/share/doc/kingfisher/kingfisher.pg.sql;"   
18     echo "\q" 
19     echo "---------------------------------------------------------------------------"
22 # $1: The new package version
23 post_install() {
24     _install_notes
27 post_upgrade() {
28     _install_notes
31 pre_remove() {
32     killall kingfisherd