Skip to content

Instantly share code, notes, and snippets.

@raphink
Created March 28, 2017 12:52
Show Gist options
  • Save raphink/66956ca35d4ccd16e6fdd3b304c0748c to your computer and use it in GitHub Desktop.
Save raphink/66956ca35d4ccd16e6fdd3b304c0748c to your computer and use it in GitHub Desktop.
#!/bin/bash
trap "echo term; umount /home/shared/s3" SIGTERM
mount --make-shared /home/shared/s3
mkdir -p /home/shared/s3
mkdir -p /tmp
s3fs $BUCKETNAME /home/shared/s3 -o use_cache=/tmp -o allow_other -o umask=0002 -o use_rrs -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment