Skip to content

Commit

Permalink
docker: fix umount when busy
Browse files Browse the repository at this point in the history
before:
+ fusermount3 -u /encrypted
fusermount3: failed to unmount /encrypted: Resource busy
  • Loading branch information
fphammerle committed Apr 4, 2019
1 parent 16fb3f0 commit 1a50342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/rgpgfs_unattended.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ set -x
grep -q "^trust-model always$" ~/.gnupg/gpg.conf 2> /dev/null \
|| echo trust-model always | tee ~/.gnupg/gpg.conf

trap 'fusermount3 -u "$CIPHER_DIR"' SIGTERM
trap 'fusermount3 -u -z "$CIPHER_DIR"' SIGTERM
rgpgfs -f -o allow_other \
-o modules=subdir,subdir="$SOURCE_DIR" \
-o recipient="$RECIPIENT" \
Expand Down

0 comments on commit 1a50342

Please sign in to comment.