updated on Wed Jan 25 20:08:56 UTC 2012
[aur-mirror.git] / ingres / ingres.install
blob641b9049fd16ebe2a758e8bc9d2c6307df089ec8
2 ## arg 1:  the new package version
3 pre_install() {
4   echo "Setting up Ingres environment and user"
5   if [ "`grep \"^ingres:\" /etc/passwd`" == "" ] ; then
6     useradd -m ingres
7   fi
10 ## arg 1:  the new package version
11 post_install() {
12   echo "Running Ingres installation"
13   /tmp/ii_install/ingres-$1-`uname -m`/ingres_express_install.sh AR /opt/Ingres/IngresAR
14   echo "Cleaning up installation files"
15   rm -rf /tmp/ii_install
16   cp -f /home/ingres/.ingARsh /home/
17   echo "Ingres is now set up, please source /home/.ingARsh to gain access to Ingres"
20 ## arg 1:  the new package version
21 ## arg 2:  the old package version
22 pre_upgrade() {
23   #todo: upgrades need to be looked into
24   echo "pre_upgrade"
27 ## arg 1:  the new package version
28 ## arg 2:  the old package version
29 post_upgrade() {
30   #todo: upgrades need to be looked into
31   echo "post_upgrade"
34 ## arg 1:  the old package version
35 pre_remove() {
36   echo "Setting up Ingres environment and stopping the server"
37   source /home/ingres/.ingARsh
38   ingstop
41 ## arg 1:  the old package version
42 post_remove() {
43   echo "Removing Ingres installation"
44   rm -rf /opt/Ingres/IngresAR
45   rm -rf /home/.ingARsh
48 # vim:set ts=2 sw=2 et: