updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / drupal-cvs / drupal-cvs.install
blob83a786c7e3c5d68265bd5da3875801ca8c234a7c
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/drupal/."
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 drupal won't work."
18   fi
19   /bin/true
22 # arg 1:  the new package version
23 # arg 2:  the old package version
24 pre_upgrade() {
25   /bin/true
28 # arg 1:  the new package version
29 # arg 2:  the old package version
30 post_upgrade() {
31   /bin/true
34 # arg 1:  the old package version
35 pre_remove() {
36   /bin/true
39 # arg 1:  the old package version
40 post_remove() {
41   /bin/true
44 op=$1
45 shift
46 $op $*