updated on Sun Jan 15 20:01:04 UTC 2012
[aur-mirror.git] / prosepoint / prosepoint.install
blobba18827982f840454b4787dcf3df7e88fa82b8f6
1 # This is a default template for a post-install scriptlet.  You can
2 # remove any functions you don't need (and this header).
4 # arg 1:  the new package version
5 pre_install() {
6   /bin/true
9 # arg 1:  the new package version
10 post_install() {
11   echo "Remember that you need to install either mysql or postgresql for this package"
12   echo "to work. Also make sure to read either INSTALL.mysql.txt (for MySQL) or"
13   echo "INSTALL.pgsql.txt (for PostgreSQL) in /srv/http/prosepoint/."
14   echo "Also remember to enable clean urls in your web server or prosepoint wont work."
15   if [[ ! `grep "^extension=mysql.so" /etc/php/php.ini` ]]
16         then echo "If you use mysql you should enable its module by adding the line:"
17         echo "   extension=mysql.so"
18         echo "to your /etc/php/php.ini, otherwise prosepoint won't work."
19   fi
20   /bin/true
23 # arg 1:  the new package version
24 # arg 2:  the old package version
25 pre_upgrade() {
26   /bin/true
29 # arg 1:  the new package version
30 # arg 2:  the old package version
31 post_upgrade() {
32   /bin/true
35 # arg 1:  the old package version
36 pre_remove() {
37   /bin/true
40 # arg 1:  the old package version
41 post_remove() {
42   /bin/true
45 op=$1
46 shift
47 $op $*