updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / drupal7 / drupal.install
blobe1a437d6bc832ee381072bb512996a9686007a4f
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/drupal7/."
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