From 95857733a140d6c91c1884dfb485e921c4b04afb Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Sun, 4 Nov 2018 17:45:16 -0800 Subject: [PATCH] Replace ~ with ${HOME} in examples Several of these do not work since the shell does not replace ~ in the middle of a token, e.g., -o passwd=~/.passwd . Replace all of them for consistency. Fixes #836. --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 5a7c83e..593f5e1 100644 --- a/README.md +++ b/README.md @@ -89,27 +89,27 @@ Examples The default location for the s3fs password file can be created: -* using a .passwd-s3fs file in the users home directory (i.e. ~/.passwd-s3fs) +* using a .passwd-s3fs file in the users home directory (i.e. ${HOME}/.passwd-s3fs) * using the system-wide /etc/passwd-s3fs file -Enter your credentials in a file `~/.passwd-s3fs` and set +Enter your credentials in a file `${HOME}/.passwd-s3fs` and set owner-only permissions: ``` -echo ACCESS_KEY_ID:SECRET_ACCESS_KEY > ~/.passwd-s3fs -chmod 600 ~/.passwd-s3fs +echo ACCESS_KEY_ID:SECRET_ACCESS_KEY > ${HOME}/.passwd-s3fs +chmod 600 ${HOME}/.passwd-s3fs ``` Run s3fs with an existing bucket `mybucket` and directory `/path/to/mountpoint`: ``` -s3fs mybucket /path/to/mountpoint -o passwd_file=~/.passwd-s3fs +s3fs mybucket /path/to/mountpoint -o passwd_file=${HOME}/.passwd-s3fs ``` If you encounter any errors, enable debug output: ``` -s3fs mybucket /path/to/mountpoint -o passwd_file=~/.passwd-s3fs -o dbglevel=info -f -o curldbg +s3fs mybucket /path/to/mountpoint -o passwd_file=${HOME}/.passwd-s3fs -o dbglevel=info -f -o curldbg ``` You can also mount on boot by entering the following line to `/etc/fstab`: @@ -127,7 +127,7 @@ mybucket /path/to/mountpoint fuse.s3fs _netdev,allow_other 0 0 If you use s3fs with a non-Amazon S3 implementation, specify the URL and path-style requests: ``` -s3fs mybucket /path/to/mountpoint -o passwd_file=~/.passwd-s3fs -o url=http://url.to.s3/ -o use_path_request_style +s3fs mybucket /path/to/mountpoint -o passwd_file=${HOME}/.passwd-s3fs -o url=http://url.to.s3/ -o use_path_request_style ``` or(fstab)