updated on Mon Jan 9 08:00:21 UTC 2012
[aur-mirror.git] / opengoo / opengoo.install
blob4ebe3489badb78ce35c951200dce0b871bce83ac
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/www/atrium/."
14   if [[ ! `grep "^extension=mysql.so" /etc/php/php.ini` ]]
15         then echo "If you use mysql you should enable its module by adding the line:"
16         echo "   extension=mysql.so"
17         echo "to your /etc/php/php.ini, otherwise opengoo won't work."
18   fi
19   if [[ ! `grep "^extension=openssl.so" /etc/php/php.ini` ]]
20         then echo "Opengoo requires openssl, you should enable its module by adding the line:"
21         echo "   extension=openssl.so"
22         echo "to your /etc/php/php.ini, otherwise opengoo won't work."
23   fi
24   /bin/true
27 # arg 1:  the new package version
28 # arg 2:  the old package version
29 pre_upgrade() {
30   /bin/true
33 # arg 1:  the new package version
34 # arg 2:  the old package version
35 post_upgrade() {
36   /bin/true
39 # arg 1:  the old package version
40 pre_remove() {
41   /bin/true
44 # arg 1:  the old package version
45 post_remove() {
46   /bin/true
49 op=$1
50 shift
51 $op $*