#!/bin/bash# $Id$## Installation script for the vmm# run: ./install.shLANG=CPATH=/usr/sbin:/usr/binINSTALL_OPTS="-g 0 -o 0 -p -v"PREFIX=/usr/localPF_CONFDIR=$(postconf-hconfig_directory)PF_GID=$(id-gpostfix)if[$(id-u)-ne0];thenecho"Run this script as root."exit1fipythonsetup.pyinstall--prefix${PREFIX}pythonsetup.pyclean--all>/dev/nullinstall-b-m0600${INSTALL_OPTS}vmm.cfg${PREFIX}/etc/install-b-m0640-g${PF_GID}-o0-p-vpgsql-*.cf${PF_CONFDIR}/install-m0700${INSTALL_OPTS}vmm${PREFIX}/sbin/echoecho"Don't forget to edit ${PREFIX}/etc/vmm.cfg"echo"and ${PF_CONFDIR}/pgsql-*.cf files."echo