install.sh
changeset 159 78b6b06188d3
parent 102 485d3f7d6981
child 164 67dc18294de6
equal deleted inserted replaced
158:6949f6eaf26e 159:78b6b06188d3
    28 
    28 
    29 python setup.py -q install --prefix ${PREFIX}
    29 python setup.py -q install --prefix ${PREFIX}
    30 python setup.py clean --all >/dev/null
    30 python setup.py clean --all >/dev/null
    31 
    31 
    32 install -b -m 0600 ${INSTALL_OPTS} vmm.cfg ${PREFIX}/etc/
    32 install -b -m 0600 ${INSTALL_OPTS} vmm.cfg ${PREFIX}/etc/
    33 install ${INSTALL_OPTS_CF} pgsql-*.cf ${PF_CONFDIR}/
    33 install ${INSTALL_OPTS_CF} postfix/pgsql-*.cf ${PF_CONFDIR}/
    34 install -m 0700 ${INSTALL_OPTS} vmm ${PREFIX}/sbin
    34 install -m 0700 ${INSTALL_OPTS} vmm ${PREFIX}/sbin
    35 
    35 
    36 [ -d ${LOCALE_DIR} ] || mkdir -m 0755 -p ${LOCALE_DIR}
    36 [ -d ${LOCALE_DIR} ] || mkdir -m 0755 -p ${LOCALE_DIR}
    37 cd po
    37 cd po
    38 for po in $(ls -1 *.po); do
    38 for po in $(ls -1 *.po); do
    68 for DOC in ${DOCS}; do
    68 for DOC in ${DOCS}; do
    69     install -m 0644 ${INSTALL_OPTS} ${DOC} ${DOC_DIR}
    69     install -m 0644 ${INSTALL_OPTS} ${DOC} ${DOC_DIR}
    70 done
    70 done
    71 
    71 
    72 [ -d ${DOC_DIR}/examples ] || mkdir -m 0755 -p ${DOC_DIR}/examples
    72 [ -d ${DOC_DIR}/examples ] || mkdir -m 0755 -p ${DOC_DIR}/examples
    73 install -m 0644 ${INSTALL_OPTS} pgsql-*.cf ${DOC_DIR}/examples
    73 install -m 0644 ${INSTALL_OPTS} postfix/pgsql-*.cf ${DOC_DIR}/examples
    74 install -m 0644 ${INSTALL_OPTS} vmm.cfg ${DOC_DIR}/examples
    74 install -m 0644 ${INSTALL_OPTS} vmm.cfg ${DOC_DIR}/examples
    75 
    75 
    76 echo
    76 echo
    77 echo "Don't forget to edit ${PREFIX}/etc/vmm.cfg - or run: vmm cf"
    77 echo "Don't forget to edit ${PREFIX}/etc/vmm.cfg - or run: vmm cf"
    78 echo "and ${PF_CONFDIR}/pgsql-*.cf files."
    78 echo "and ${PF_CONFDIR}/pgsql-*.cf files."