-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #168 from jazzl0ver/master
better implementation of cache_path variable access for fixing #150 multiple other fixes
- Loading branch information
Showing
7 changed files
with
77 additions
and
31 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
yas3fs#mybucket /mnt/mybucket yas3fs _netdev,allow_other,default_permissions,topic="arn:aws:sns:us-east-1:0000000000:mybucket",queue=yas3fs-mybucket,yas3fslog,yas3fsdebug 0 0 | ||
yas3fs#mybucket /mnt/mybucket yas3fs _netdev,allow_other,default_permissions,topic=arn:aws:sns:us-east-1:0000000000:mybucket,yas3fslog,yas3fsdebug 0 0 |
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
|
||
s3bucket=${1##*#} # extract the last part after '#' in 'yas3fs#bucket' string | ||
localpath=$2 | ||
topic=$(echo $4 | /bin/grep -o 'topic=[^,]*' | /bin/cut -f2 -d=) | ||
queue=$(echo $4 | /bin/grep -o 'queue=[^,]*' | /bin/cut -f2 -d=) | ||
log=$(echo $4 | /bin/grep -o 'yas3fslog') | ||
debug=$(echo $4 | /bin/grep -o 'yas3fsdebug') | ||
logline="" | ||
|
||
if [ "x$log" = "xyas3fslog" ]; then | ||
logline="--log /tmp/.yas3fs-${s3bucket} --log-mb-size 10 --log-backup-count 10 --log-backup-gzip" | ||
[ "x$debug" = "xyas3fsdebug" ] && logline="-d $logline" | ||
fi | ||
|
||
topicline="" | ||
queueline="" | ||
if [ ! "x$topic" = "x" ]; then | ||
topicline="--topic ${topic}" | ||
if [ "x$queue" = "x" ]; then | ||
queueline="--new-queue-with-hostname" | ||
else | ||
queueline="--queue ${queue}" | ||
fi | ||
fi | ||
|
||
yas3fs --download-retries-num 10 --recheck-s3 ${logline} "s3://${s3bucket}" "${localpath}" ${topicline} ${queueline} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
|
||
s3bucket=${1##*#} # extract the last part after '#' in 'yas3fs#bucket' string | ||
localpath=$2 | ||
topic=$(echo $4 | /bin/grep -o 'topic=[^,]*' | /bin/cut -f2 -d=) | ||
queue=$(echo $4 | /bin/grep -o 'queue=[^,]*' | /bin/cut -f2 -d=) | ||
log=$(echo $4 | /bin/grep -o 'yas3fslog') | ||
debug=$(echo $4 | /bin/grep -o 'yas3fsdebug') | ||
logline="" | ||
|
||
if [ "x$log" = "xyas3fslog" ]; then | ||
logline="--log /tmp/.yas3fs-${s3bucket} --log-mb-size 10 --log-backup-count 10 --log-backup-gzip" | ||
[ "x$debug" = "xyas3fsdebug" ] && logline="-d $logline" | ||
fi | ||
|
||
topicline="" | ||
queueline="" | ||
if [ ! "x$topic" = "x" ]; then | ||
topicline="--topic ${topic}" | ||
if [ "x$queue" = "x" ]; then | ||
queueline="--new-queue-with-hostname" | ||
else | ||
queueline="--queue ${queue}" | ||
fi | ||
fi | ||
|
||
scl enable python27 -- yas3fs --download-retries-num 10 --recheck-s3 ${logline} "s3://${s3bucket}" "${localpath}" ${topicline} ${queueline} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '2.4.0' | ||
__version__ = '2.4.4' |