#!/bin/bash # Script to create an OpenVZ VE for a specific hostname # The hostname must be present in $CONFIGBASE/host.map DEFAULT_CONFFILE=/etc/egscripts/make-openvz-ve.conf DEFAULT_CONFIGBASE=/etc/egscripts/openvz DEFAULT_CONFIGTEMPLATE=vps.basic DEFAULT_VZCONFDIR=/etc/vz DEFAULT_DOMAIN=kc DEFAULT_NAMESERVER=10.128.2.11 # # Any of the variables below can be overriden either as environment variables # or in the configuration file. Either specified on the command line or from # the default above # CONFFILE=${CONFFILE-$DEFAULT_CONFFILE} CONFIGBASE=${CONFIGBASE-$DEFAULT_CONFIGBASE} CONFIGTEMPLATE=${CONFIGTEMPLATE-$DEFAULT_CONFIGTEMPLATE} VZCONFDIR=${VZCONFDIR-$DEFAULT_VZCONFDIR} DOMAIN=${DOMAIN-$DEFAULT_DOMAIN} NAMESERVER=${NAMESERVER-$DEFAULT_NAMESERVER} START=1 usage() { cat <