diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-10-07 19:32:06 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-10-07 19:32:06 -0300 |
commit | 0d6bcb2b7d08e3a41481372c1ae0d11868d88b1b (patch) | |
tree | d4429ce3a62e9cb5d095ad567b5f821d99a7b9f5 /trunk/templates/vserver-legacy/scripts | |
parent | 5bfb15bdbedbc7273a283d611c84ed1cf401011b (diff) | |
download | simplepkg-0d6bcb2b7d08e3a41481372c1ae0d11868d88b1b.tar.gz simplepkg-0d6bcb2b7d08e3a41481372c1ae0d11868d88b1b.tar.bz2 |
New repo layout with git migration
Diffstat (limited to 'trunk/templates/vserver-legacy/scripts')
-rw-r--r-- | trunk/templates/vserver-legacy/scripts/GPG-KEY | 88 | ||||
-rw-r--r-- | trunk/templates/vserver-legacy/scripts/devices.tar.gz | bin | 322 -> 0 bytes | |||
-rw-r--r-- | trunk/templates/vserver-legacy/scripts/skel.conf | 70 | ||||
-rw-r--r-- | trunk/templates/vserver-legacy/scripts/vserver-legacy.sh | 49 |
4 files changed, 0 insertions, 207 deletions
diff --git a/trunk/templates/vserver-legacy/scripts/GPG-KEY b/trunk/templates/vserver-legacy/scripts/GPG-KEY deleted file mode 100644 index fd23e95..0000000 --- a/trunk/templates/vserver-legacy/scripts/GPG-KEY +++ /dev/null @@ -1,88 +0,0 @@ -security@slackware.com public key - -Type bits/keyID Date User ID -pub 1024D/40102233 2003-02-26 Slackware Linux Project <security@slackware.com> -sub 1024g/4E523569 2003-02-26 [expires: 2012-12-21] - ------BEGIN PGP PUBLIC KEY BLOCK----- -Version: GnuPG v1.2.1 (GNU/Linux) - -mQGiBD5dIFQRBADB31WinbXdaGk/8RNkpnZclu1w3Xmd5ItACDLB2FhOhArw35EA -MOYzxI0gRtDNWN4pn9n74q4HbFzyRWElThWRtBTYLEpImzrk7HYVCjMxjw5A0fTr -88aiHOth5aS0vPAoq+3TYn6JDSipf2bR03G2JVwgj3Iu066pX4na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------END PGP PUBLIC KEY BLOCK----- - -slamd64 public key - ------BEGIN PGP PUBLIC KEY BLOCK----- -Version: GnuPG v1.2.6 (GNU/Linux) - -mQGiBELKSBYRBACiElxGMXqxUwdsQBKPngV6/k0Q5AYT34+WLL0B7XRR9kOotCfc -PTLCP5qLM9etpzKhbMbgWGpaBrA/3KEPOJ7JVhk6JcLgjoi0QsMusaI4BGnmrxkw -3mh9xPwc+jPgiYOljbZhNG6FMQtrdlKYV+BmwS8mt/YBymShghtlgdHJjwCg/PAG -YJDsfoG1ebuwcjYlsGoD2x0EAJX7UnTdxxESvmIuk172MunZqw+o8+o/W684z13/ -wOkcVqvuAcd0ejuY0z09GFfyhtig8E55UcKNyVC50+3aJUXlt9//HnENHZo+OEN1 -ezbOXUcJIw8xkU551qaxubqWXtKYEJP9z/khVPe4N0JW2vWOcAFYhuOEx1ylaNrX -gUY4BACDpn+pntq0ooZqkSPT4v1ibOQg/3xh2F1PgsnOahMRrXbVEdL9ItsVnHM/ -ygHBjLhkEMd612nVVSw1BYMBAwQbsYB8Lgn1QxXl0ISBYR1RYW1LvyaJM6A6TDL+ -EdWp+iTtlKOe/VD+oCfHmMONoucZJM2AtK1vXTX3x4Wb4MgVdLQoRnJlZGVyaWNr -IEVtbW90dCA8bWFpbEBmcmVkZW1tb3R0LmNvLnVrPohkBBMRAgAkBQJCykgWAhsD -BQkDwmcABgsJCAcDAgMVAgMDFgIBAh4BAheAAAoJEAd5Da1T/acLGfIAoOqIHrg4 -r2pq/tKi9VifOJS1xg4LAKDpi0I0pzsdDJ2owxCQ88MkoSDKgohMBBARAgAMBQJD -Ed/tBYMDes8pAAoJEFgpV1AFAIOLprQAnRDVVmDPnzVNOWrZ8D55gG2bOwkxAKCl -dGThnu0aQ0IEL7MgUETGtk4hS4iiBBABAgAMBQJDEdpDBYMDetTTAAoJEJugaRW/ -hasxqCwEAKczPTgOrRXXTs4piB14DayJQVgoqVgiNfKzd5qVuvQgYebQrMu7hi5U -0q/n6TbQpjm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K8CC4PIr/ZYDjd+aeS3R31FjGr -=D1wm ------END PGP PUBLIC KEY BLOCK----- diff --git a/trunk/templates/vserver-legacy/scripts/devices.tar.gz b/trunk/templates/vserver-legacy/scripts/devices.tar.gz Binary files differdeleted file mode 100644 index 992ba79..0000000 --- a/trunk/templates/vserver-legacy/scripts/devices.tar.gz +++ /dev/null diff --git a/trunk/templates/vserver-legacy/scripts/skel.conf b/trunk/templates/vserver-legacy/scripts/skel.conf deleted file mode 100644 index 73985d3..0000000 --- a/trunk/templates/vserver-legacy/scripts/skel.conf +++ /dev/null @@ -1,70 +0,0 @@ -if [ "" = "" ] ; then -PROFILE=prod -fi -# Select the IP number assigned to the virtual server -# This IP must be one IP of the server, either an interface -# or an IP alias -# A vserver may have more than one IP. Separate them with spaces. -# do not forget double quotes. -# Some examples: -# IPROOT="1.2.3.4 2.3.4.5" -# IPROOT="eth0:1.2.3.4 eth1:2.3.4.5" -# If the device is not specified, IPROOTDEV is used -case $PROFILE in -prod) -#IPROOT=143.106.35.156 -IPROOT="eth0:192.168.0.1" -# The netmask and broadcast are computed by default from IPROOTDEV -#IPROOTMASK= -#IPROOTBCAST= -# You can define on which device the IP alias will be done -# The IP alias will be set when the server is started and unset -# when the server is stopped -#IPROOTDEV=eth0 -# You can set a different host name for the vserver -# If empty, the host name of the main server is used -S_HOSTNAME=skel -;; -backup) -IPROOT=1.2.3.4 -#IPROOTMASK= -#IPROOTBCAST= -#IPROOTDEV=eth0 -S_HOSTNAME= -;; -esac -# Uncomment the onboot line if you want to enable this -# virtual server at boot time -#ONBOOT=yes -# You can set a different NIS domain for the vserver -# If empty, the current on is kept -# Set it to "none" to have no NIS domain set -S_DOMAINNAME= -# You can set the priority level (nice) of all process in the vserver -# Even root won't be able to raise it -S_NICE= -# You can set various flags for the new security context -# lock: Prevent the vserver from setting new security context -# sched: Merge scheduler priority of all processes in the vserver -# so that it acts a like a single one. -# nproc: Limit the number of processes in the vserver according to ulimit -# (instead of a per user limit, this becomes a per vserver limit) -# private: No other process can join this security context. Even root -# Do not forget the quotes around the flags -S_FLAGS="lock nproc" -# You can set various ulimit flags and they will be inherited by the -# vserver. You enter here various command line argument of ulimit -# ULIMIT="-HS -u 200" -# The example above, combined with the nproc S_FLAGS will limit the -# vserver to a maximum of 200 processes -ULIMIT="-HS -u 1000" -# You can set various capabilities. By default, the vserver are run -# with a limited set, so you can let root run in a vserver and not -# worry about it. He can't take over the machine. In some cases -# you can to give a little more capabilities (such as CAP_NET_RAW) -# S_CAPS="CAP_NET_RAW" -S_CAPS="CAP_SETGID" -# Select an unused context (this is optional) -# The default is to allocate a free context on the fly -# In general you don't need to force a context -#S_CONTEXT= diff --git a/trunk/templates/vserver-legacy/scripts/vserver-legacy.sh b/trunk/templates/vserver-legacy/scripts/vserver-legacy.sh deleted file mode 100644 index 4ce8a4b..0000000 --- a/trunk/templates/vserver-legacy/scripts/vserver-legacy.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/bash -# -# legacy vserver template -# - -BASE="/etc/simplepkg/templates/vserver-legacy/vserver-legacy.s/" -DEVICES="$BASE/devices.tar.gz" -GPGKEY="$BASE/GPG-KEY" -SKEL="$BASE/skel.conf" - -if [ -z "$2" ]; then - echo "usage: `basename $0` <jail-root> <jail-name>" - 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" - mkdir -p /etc/vservers - 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 - -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"" |