#!/bin/bash # --- T2-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # T2 SDE: misc/vserver/install # Copyright (C) 2006 Juergen "George" Sawinski # Copyright (C) 2006 The T2 SDE Project # # More information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. A copy of the # GNU General Public License can be found in the file COPYING. # --- T2-COPYRIGHT-NOTE-END --- # TODO: # - implement "update" mode # - add "check" mode # - implement $admdir outside $root # - post-installation methods # - add rootfs alike copy_and_parse functionality # root directory defaults root=./test #FIXME vdirbase=/etc/vservers/.defaults/vdirbase guest= # files (selections) to install files= selection= # installer defaults method=install installer=mine # misc defaults verbose=0 pkgdir= pkgs= admdir= templates= templatedir=./${0%/*}/templates #FIXME /etc/vserver/.distributions/t2/templates patterndir=./${0%/*}/patterns #FIXME /etc/vserver/.distributions/t2/patterns ############################################################################# usage() { cat << EOF vserver-guest-install [options] [packages] Options: Methods -i,-install Install packages (default) -u,-update Update packages -r,-remove Remove packages -c,-check Check packages VServer setup -g,-guest Name of the vserver guest -R,-root Root installation directory (./test) Package selection -t,-template