git://git.onelab.eu
/
vsys-scripts.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added script to set up custom distributions
[vsys-scripts.git]
/
exec
/
switcheroo
1
#!/bin/sh
2
3
RDIR="/vservers/$1/rootfs"
4
5
if [ ! -d $RDIR ];
6
then
7
echo "Please create a root filesystem in the $RDIR directory"
8
else
9
vserver $1 stop
10
mv /vservers/$1 /vservers/_$1
11
mv /vservers/_$1/rootfs /vservers/$1
12
vserver $1 start
13
fi