equal
deleted
inserted
replaced
5 |
5 |
6 LANG=C |
6 LANG=C |
7 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 |
8 PREFIX=/usr/local |
8 PREFIX=/usr/local |
9 |
9 |
10 PF_CONFDIR=$(postconf -h config_directory) |
|
11 PF_GID=$(id -g $(postconf -h mail_owner)) |
|
12 POSTCONF=$(which postconf) |
|
13 DOVECOT_VERS=$(dovecot --version | awk '{print $1}') |
10 DOVECOT_VERS=$(dovecot --version | awk '{print $1}') |
14 LOCALE_DIR=${PREFIX}/share/locale |
11 LOCALE_DIR=${PREFIX}/share/locale |
15 DOC_DIR=${PREFIX}/share/doc/vmm |
12 DOC_DIR=${PREFIX}/share/doc/vmm |
16 if [ ${PREFIX} = "/usr" ]; then |
13 if [ ${PREFIX} = "/usr" ]; then |
17 MANDIR=${PREFIX}/share/man |
14 MANDIR=${PREFIX}/share/man |
19 MANDIR=${PREFIX}/man |
16 MANDIR=${PREFIX}/man |
20 fi |
17 fi |
21 DOCS="ChangeLog COPYING NEWS INSTALL README" |
18 DOCS="ChangeLog COPYING NEWS INSTALL README" |
22 |
19 |
23 INSTALL_OPTS="-g 0 -o 0 -p" |
20 INSTALL_OPTS="-g 0 -o 0 -p" |
24 INSTALL_OPTS_CF="-b -m 0640 -g ${PF_GID} -o 0 -p" |
|
25 |
21 |
26 if [ $(id -u) -ne 0 ]; then |
22 if [ $(id -u) -ne 0 ]; then |
27 echo "Run this script as root." |
23 echo "Run this script as root." |
28 exit 1 |
24 exit 1 |
29 fi |
25 fi |
36 exit 1 |
32 exit 1 |
37 elif [ $rv -eq 3 ]; then |
33 elif [ $rv -eq 3 ]; then |
38 echo "please read the upgrade instructions at http://vmm.localdomain.org/" |
34 echo "please read the upgrade instructions at http://vmm.localdomain.org/" |
39 exit 1 |
35 exit 1 |
40 elif [ $rv -ne 0 ]; then |
36 elif [ $rv -ne 0 ]; then |
41 echo "Sorry, something went wrong. Please file a bug:" |
37 echo "Sorry, something went wrong. Please file a bug at:" |
42 echo "https://sourceforge.net/tracker/?group_id=213727" |
38 echo "https://bitbucket.org/pvo/vmm/issues" |
43 exit 1 |
39 exit 1 |
|
40 fi |
|
41 |
|
42 # remove old CamelCase files |
|
43 if [ -f /tmp/vmm_inst_dir ] ; then |
|
44 rm -rf `cat /tmp/vmm_inst_dir` |
|
45 rm -f /tmp/vmm_inst_dir |
44 fi |
46 fi |
45 |
47 |
46 python setup.py -q install --force --prefix ${PREFIX} |
48 python setup.py -q install --force --prefix ${PREFIX} |
47 python setup.py clean --all >/dev/null |
49 python setup.py clean --all >/dev/null |
48 |
50 |