upgrade.sh
changeset 102 485d3f7d6981
parent 94 0d303d15549e
child 104 c0b5afb89088
equal deleted inserted replaced
101:0ab6f74aa165 102:485d3f7d6981
     1 #!/bin/sh
     1 #!/bin/sh
     2 # $Id$
       
     3 #
     2 #
     4 # Upgrade script for the Virtual Mail Manager
     3 # Upgrade script for the Virtual Mail Manager
     5 # run: ./install.sh
     4 # run: ./upgrade.sh
     6 
     5 
     7 LANG=C
     6 LANG=C
     8 PATH=/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
     7 PATH=/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
     9 PREFIX=/usr/local
     8 PREFIX=/usr/local
    10 
     9 
    11 PF_CONFDIR=$(postconf -h config_directory)
    10 PF_CONFDIR=$(postconf -h config_directory)
    12 PF_GID=$(id -g $(postconf -h mail_owner))
    11 PF_GID=$(id -g $(postconf -h mail_owner))
    13 LOCALE_DIR=${PREFIX}/share/locale
    12 LOCALE_DIR=${PREFIX}/share/locale
    14 DOC_DIR=${PREFIX}/share/doc/vmm
    13 DOC_DIR=${PREFIX}/share/doc/vmm
    15 if [ ${PREFIX} == "/usr" ]; then
    14 if [ ${PREFIX} = "/usr" ]; then
    16     MANDIR=${PREFIX}/share/man
    15     MANDIR=${PREFIX}/share/man
    17 else
    16 else
    18     MANDIR=${PREFIX}/man
    17     MANDIR=${PREFIX}/man
    19 fi
    18 fi
    20 DOCS="ChangeLog COPYING NEWS INSTALL README"
    19 DOCS="ChangeLog COPYING NEWS INSTALL README"