projects
/
util-vserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
c46a6c6
)
Remove leading /
author
Daniel Hokka Zakrisson
<daniel@hozac.com>
Fri, 30 Sep 2011 07:50:23 +0000 (09:50 +0200)
committer
Daniel Hokka Zakrisson
<daniel@hozac.com>
Fri, 30 Sep 2011 07:50:23 +0000 (09:50 +0200)
scripts/vserver.functions
patch
|
blob
|
history
diff --git
a/scripts/vserver.functions
b/scripts/vserver.functions
index
e825271
..
4cf8024
100644
(file)
--- 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