首页 > 代码库 > 两个七牛app上传小脚本

两个七牛app上传小脚本

把要更新的app放到/home/data下面

 

安卓:

cat upload_apk.sh
#!/bin/bash
User=771167002@qq.com
Pass=0!B2pjO41Rb4

qrsctl-v3.1.20161125 login ${User} ${Pass}
qrsctl-v3.1.20161125 put -c s-----l $1 "/home/data/"$1
ansible app -S -R root -m shell -a "sed -ri "s/app-.*.apk/$1/" /data/www/config.js"

使用方法:

upload_apk.sh  apk文件名

 

苹果:

#!/bin/bash
User=771167002@qq.com
Pass=0!B2pjO41Rb4

qrsctl-v3.1.20161125 login ${User} ${Pass}
qrsctl-v3.1.20161125 del s-----l ios.ipa
qrsctl-v3.1.20161125 put -c s-----l ios.ipa "/home/data/ios.ipa"
qrsctl-v3.1.20161125 cdn/refresh s-----l http://client.hec66.com/ios.ipa

两个七牛app上传小脚本