summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'util-vserver/patches/0.30.210-r8/util-vserver-0.30.210-delete-cmd.patch')
-rw-r--r--util-vserver/patches/0.30.210-r8/util-vserver-0.30.210-delete-cmd.patch38
1 files changed, 0 insertions, 38 deletions
diff --git a/util-vserver/patches/0.30.210-r8/util-vserver-0.30.210-delete-cmd.patch b/util-vserver/patches/0.30.210-r8/util-vserver-0.30.210-delete-cmd.patch
deleted file mode 100644
index b6f446f..0000000
--- a/util-vserver/patches/0.30.210-r8/util-vserver-0.30.210-delete-cmd.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-diff -NurpP util-vserver-0.30.210/scripts/vserver util-vserver-0.30.210-delete/scripts/vserver
---- util-vserver-0.30.210/scripts/vserver 2005-10-28 20:29:00.000000000 +0200
-+++ util-vserver-0.30.210-delete/scripts/vserver 2006-03-12 08:21:19.293748750 +0100
-@@ -43,6 +43,7 @@ Possible commands are:
- restart ... restarts the specified vserver; this is the subsequent
- execution of a synchronized 'stop' and a 'start'
- condrestart ... restarts the vserver when it is running already
-+ delete ... deletes the specified vserver
- suexec <user> <shell-command> <args*>
- ... executes a command as the specified user in the vserver
- exec <shell-command> <args*>
-@@ -96,6 +97,17 @@ the GNU General Public License. This pr
- exit 0
- }
-
-+function delete()
-+{
-+ if [[ -z "$OPTION_SILENT" ]]; then
-+ read -p "Really remove '$vserver'? [y/N]" deleteok
-+ [[ "$deleteok" != [Yy] ]] && exit 2
-+ fi
-+
-+ isVserverRunning "$VSERVER_DIR" && "${SELF[@]}" $OPTION_SILENT --sync "$vserver" stop
-+ rm -rf $(readlink -f "$VSERVER_DIR"/vdir) "$VSERVER_DIR"
-+}
-+
- function suexec()
- {
- . $__PKGLIBDIR/vserver.suexec
-@@ -203,7 +215,7 @@ case "$2" in
- shift 2
- . $__PKGLIBDIR/vserver.$cmd
- ;;
-- (suexec|restart)
-+ (suexec|restart|delete)
- shift 2
- $cmd "$@"
- ;;