#!/bin/sh
wget http://gosspublic.alicdn.com/ossutil/1.7.0/ossutil64
chmod 755 ./ossutil64
## 设置oss 变量配置
OSS_REGION="oss-cn-shenzhen"
OSS_PROVIDER="oss"
OSS_ACCESS_KEY_SECRET="11"
OSS_HOST="2222.oss-cn-shenzhen.aliyuncs.com"
OSS_ACCESS_KEY_ID="3333"
OSS_ACCESS_KEY="4444"
OSS_ENDPOINT="http://oss-cn-shenzhen.aliyuncs.com"
OSS_STORE_DIR="5555"
OSS_BUCKET="6666-uat"
OSS_ACCESS_SECRET="7777"
./ossutil64 config -c /root/.ossutilconfig -e $OSS_ENDPOINT -i $OSS_ACCESS_KEY_ID -k $OSS_ACCESS_KEY_SECRET -L CH
./ossutil64 cp $1 oss://$OSS_BUCKET/upload/files$1
printf "文件下载路径:https://"$OSS_BUCKET"."$OSS_REGION".aliyuncs.com/upload/files"$1"
"
# language=EN
#### endpoint=http://oss-cn-shenzhen.aliyuncs.com
#### accessKeyID=1111
#### accessKeySecret=2222