# HG changeset patch # User Pascal Volk # Date 1351429170 0 # Node ID 9b4d0e2c97d57a1949ba5d7fe26236c06d36cc98 # Parent c4c687668b6de03199b163feeebe84b9d2f7e2de install.sh: Don't fail if $SYSCONFDIR doesn't exist. diff -r c4c687668b6d -r 9b4d0e2c97d5 install.sh --- a/install.sh Wed Oct 24 19:04:32 2012 +0000 +++ b/install.sh Sun Oct 28 12:59:30 2012 +0000 @@ -13,8 +13,10 @@ DOC_DIR=${PREFIX}/share/doc/vmm if [ ${PREFIX} = "/usr" ]; then MANDIR=${PREFIX}/share/man + SYSCONFDIR=/etc else MANDIR=${PREFIX}/man + SYSCONFDIR=${PREFIX}/etc fi DOCS="ChangeLog Configure.Dovecot_2 COPYING INSTALL NEWS README" @@ -29,7 +31,8 @@ python setup.py -q install --force --prefix ${PREFIX} python setup.py clean --all >/dev/null -install -b -m 0600 ${INSTALL_OPTS} vmm.cfg ${PREFIX}/etc/ +[ -d ${SYSCONFDIR} ] || mkdir -m 0755 -p ${SYSCONFDIR} +install -b -m 0600 ${INSTALL_OPTS} vmm.cfg ${SYSCONFDIR}/ install ${INSTALL_OPTS_CF} postfix/pgsql-*.cf ${PF_CONFDIR}/ install -m 0700 ${INSTALL_OPTS} vmm ${PREFIX}/sbin