From bd5a14836a8967b9ff8b8ed1c14a0b1d8289ea52 Mon Sep 17 00:00:00 2001 From: rhatto Date: Fri, 9 Feb 2007 16:44:20 +0000 Subject: lots of changes: - jail-update renamed to jail-commit - mkjail, jail-commit and templatepkg with svn support - templates now has permission tracking - etc git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@164 04377dda-e619-0410-9926-eae83683ac58 --- templates/vserver-legacy.s/vserver-legacy.sh | 48 ---------------------------- 1 file changed, 48 deletions(-) delete mode 100644 templates/vserver-legacy.s/vserver-legacy.sh (limited to 'templates/vserver-legacy.s/vserver-legacy.sh') diff --git a/templates/vserver-legacy.s/vserver-legacy.sh b/templates/vserver-legacy.s/vserver-legacy.sh deleted file mode 100644 index f243ea0..0000000 --- a/templates/vserver-legacy.s/vserver-legacy.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/bash -# -# legacy vserver template -# - -DEVICES="/etc/simplepkg/vserver-legacy.s/devices.tar.gz" -GPGKEY="/etc/simplepkg/vserver-legacy.s/GPG-KEY" -SKEL="/etc/simplepkg/vserver-legacy.s/skel.conf" - -if [ -z "$2" ]; then - echo "usage: `basename $0` " - exit 1 -elif [ ! -d "$1/$2" ]; then - echo "folder $1/$2 does not exist" - exit 1 -fi - -cp /etc/resolv.conf $1/$2/etc/ -cp /etc/localtime $1/$2/etc/ -echo /dev/hdv1 / ext2 defaults 1 1 > $1/$2/etc/fstab -echo /dev/hdv1 / ext2 rw 0 0 > $1/$2/etc/mtab - -echo "creating devices and dependencies" -if [ -f "$DEVICES" ]; then - cd $1/$2/ - tar zxvf $DEVICES - chroot $1/$2/ sbin/ldconfig -else - echo error: device template $DEVICES not found -fi - -if [ -f "$SKEL" ]; then - echo "creating /etc/vservers/$2.conf" - cp $SKEL /etc/vservers/$2.conf -else - echo error: config file template $SKEL not found -fi - -if [ -f "$GPGKEY" ]; then - echo "importing slack gpg pubkey" - mkdir $1/$2/root/.gnupg - gpg --homedir $1/$2/root/.gnupg --import $GPGKEY -fi - -# todo: add rebootmgr -echo "done; now edit /etc/vservers/$2.conf" -echo "then, set all desired iptables rules and start $server vserver" -echo "dont forget to change root's password with the command "vserver $2 exec passwd"" -- cgit v1.2.3