Last active
July 30, 2020 09:20
-
-
Save s-chb/a73d4c78ec6fa69d3b869b6cafcffbd2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo nano /etc/mount.sh | |
| # Then add the following line : | |
| sudo s3fs your_bucketname /mys3bucket -o use_cache=/tmp -o allow_other -o uid=1001 -o mp_umask=002 -o multireq_max=5 -o use_path_request_style -o url=https://s3-{{aws_region}}.amazonaws.com | |
| # Then setup the right permissions : | |
| sudo chmod -R a+rwx /etc/mount.sh | |
| # Access the crontab | |
| crontab -e | |
| # Add the following line : | |
| @reboot /etc/mount.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment