From 2e45bc70c885e5e7be29206330eb45e53a741c90 Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Fri, 30 Sep 2011 09:50:23 +0200 Subject: [PATCH] Remove leading / --- scripts/vserver.functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/vserver.functions b/scripts/vserver.functions index e825271..4cf8024 100644 --- a/scripts/vserver.functions +++ b/scripts/vserver.functions @@ -843,7 +843,7 @@ function prepareInit pushd "$1/vdir" >/dev/null case "$INITSTYLE" in sysv) - local -a dirs=( $($_CHROOT_SH realpath /var/run /var/lock || :) ) + local -a dirs=( $($_CHROOT_SH realpath /var/run /var/lock | $_SED 's!^/*!!' || :) ) local dir for dir in "${dirs[@]}"; do $_FIND $dir ! -type d -print0 | xargs -0r $_CHROOT_SH rm -- 1.8.1.5