mkdir -p /tmp/garage.cyberduck.home/.duck/profiles DUCK_ACCESS_KEY=`cat /tmp/garage.s3 |cut -d' ' -f1` DUCK_SECRET_KEY=`cat /tmp/garage.s3 |cut -d' ' -f2` cat > /tmp/garage.cyberduck.home/.duck/credentials < /tmp/garage.cyberduck.home/.duck/profiles/garage.cyberduckprofile < Protocol s3 Vendor garage Scheme https Description GarageS3 Default Hostname 127.0.0.1 Default Port 4443 Hostname Configurable Port Configurable Username Configurable Username Placeholder Access Key ID (GK...) Password Placeholder Secret Key Properties s3service.disable-dns-buckets=true Region garage Regions garage EOF function duck { HOME=/tmp/garage.cyberduck.home/ command duck --username $DUCK_ACCESS_KEY $@ ; }