From 7a508957848e1f6cb4c2b1d74f844caaa4cdff88 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Fri, 8 Jun 2018 18:07:08 +0200 Subject: Permissions. Tolerate failing chmod on the "shared-data" directory. This is safe as if party X fails in doing so, then party Y did already set permissions as wanted. --- bin/taler-deployment-keyup | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin/taler-deployment-keyup') diff --git a/bin/taler-deployment-keyup b/bin/taler-deployment-keyup index b497f78..e91c2b0 100755 --- a/bin/taler-deployment-keyup +++ b/bin/taler-deployment-keyup @@ -32,4 +32,8 @@ if [[ -s $auditor_request_dir/auditor_request ]]; then -c ${HOME}/.config/taler.conf fi -chmod -fR g+rw ${HOME}/shared-data +# Make sure the creator sets those permissions; or-ing +# with 'true' is needed as when the other party will +# execute this it will fail to chmod, but the permissions +# are already right. +chmod -R g+rw ${HOME}/shared-data || true -- cgit v1.2.3