[tor-commits] [tor-messenger-build/master] Fix some permissions problem in runc/remote_get

boklm at torproject.org boklm at torproject.org
Tue Aug 1 10:51:15 UTC 2017


commit 69aee849a1b104ab43a9574c21e75abc5b0ec3bc
Author: Nicolas Vigier <boklm at torproject.org>
Date:   Tue Aug 1 12:48:05 2017 +0200

    Fix some permissions problem in runc/remote_get
---
 rbm.conf | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rbm.conf b/rbm.conf
index 6c6645c..6b8f3c7 100644
--- a/rbm.conf
+++ b/rbm.conf
@@ -263,10 +263,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: |





More information about the tor-commits mailing list