summarylogtreecommitdiffstats
path: root/kingfisher.install
blob: 34af547ab34e21e879388801cb79c1241846bc52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
_install_notes() {
    echo
    echo '---------------------------------------------------------------------------'
    echo ' IMPORTANT NOTES:'
    echo 
    echo "IMPORTANT: Now, create tables in database with /usr/share/doc/kingfisher/kingfisher.pg.sql"
    echo "And edit /etc/kingfisher/kingfisher.conf and /srv/http/kingfisher/inc/config.inc.php"
    echo "Init Kingfisher Daemon with: /etc/rc.d/kingfisherd start"
    echo "Configure httpd.conf and php.ini with pdo"
    echo ""
    echo "Ex. Create Database"
    echo "$su postgres"
    echo "$psql"
    echo "postgres=# CREATE DATABASE kingfisher;"
    echo "postgres=# CREATE USER kingfisher;"
    echo "postgres=# \password kingfisher;"
    echo "postgres=# \i /usr/share/doc/kingfisher/kingfisher.pg.sql;"   
    echo "\q" 
    echo "---------------------------------------------------------------------------"
}

# $1: The new package version
post_install() {
    _install_notes
}

post_upgrade() {
    _install_notes
}

pre_remove() {
    killall kingfisherd
}