Unverified Commit 86210c68 authored by boklm's avatar boklm
Browse files

Fix some permissions problem in runc/remote_get

parent b80b64eb
......@@ -297,10 +297,10 @@ runc:
-%]
mkdir -p [% dst %]
srcdir='[% c("var/container/dir", { error_if_undef => 1 }) %]'/rootfs/[% src %]
sudo chown -R $(whoami) "$srcdir"
if [ $(ls -1 "$srcdir"/* 2> /dev/null | wc -l) -gt 0 ]
then
sudo chown $(whoami) "$srcdir"/*
sudo mv -f "$srcdir"/* [% dst %]/
mv -f "$srcdir"/* [% dst %]/
fi
remote_finish: |
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment