[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 69aee849a1b104ab43a9574c21e75abc5b0ec3bc
Author: Nicolas Vigier <boklm@xxxxxxxxxxxxxx>
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: |



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits