aboutsummaryrefslogtreecommitdiffstats
path: root/www/openbravoerp/pkg-install
blob: cd4619eba71a8e184ca813c4f8f107608e67013f (plain) (blame)
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
35
36
37
38
39
40
#!/bin/sh
# $FreeBSD$

PATH=/bin:/usr/bin:/usr/sbin

dbwarning() { echo "

  ===============================================
  Openbravo ERP requires a superuser \"postgres\",
  please issue following command to create it:

  # createuser -s -W postgres

  This is not done by the port. And use
  \"/usr/local/tomcat5.5\" as the Tomcat
  directory when you are prompted to enter
  the location.
  
  Press Ctrl-C now if you need to create it.
  ===============================================
"
        sleep 5
}

case $2 in
PRE-INSTALL)
        dbwarning
    ;;

POST-INSTALL)
        if [ -f ${PKG_PREFIX}/OpenbravoERP2.40/uninstaller_standard ]; then
          rm -f ${PKG_PREFIX}/OpenbravoERP2.40/uninstaller_standard
        fi
        ;;

DBWARNING)
        dbwarning
        ;;
esac