|
|
@ -6,16 +6,14 @@ apk update \
|
|
|
|
&& apk add --no-cache wget \
|
|
|
|
&& apk add --no-cache wget \
|
|
|
|
&& wget -O upx.tar.gz http://collection.b0.upaiyun.com/softwares/upx/upx_0.3.6_linux_x86_64.tar.gz \
|
|
|
|
&& wget -O upx.tar.gz http://collection.b0.upaiyun.com/softwares/upx/upx_0.3.6_linux_x86_64.tar.gz \
|
|
|
|
&& tar -zxf upx.tar.gz \
|
|
|
|
&& tar -zxf upx.tar.gz \
|
|
|
|
&& chmod +x upx \
|
|
|
|
&& chmod +x upx
|
|
|
|
&& mv upx /usr/local/bin/upx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 执行upx upload
|
|
|
|
### 执行upx upload
|
|
|
|
upx login ${bucket} ${operator} ${operator_password}
|
|
|
|
./upx login ${bucket} ${operator} ${operator_password}
|
|
|
|
echo "start delete!"
|
|
|
|
echo "start delete!"
|
|
|
|
upx ls
|
|
|
|
./upx rm -a hugo/*
|
|
|
|
upx rm -a /*
|
|
|
|
|
|
|
|
echo "start upx upload!"
|
|
|
|
echo "start upx upload!"
|
|
|
|
upx put ${local_path} ${remote_path}
|
|
|
|
./upx put ${local_path} ${remote_path}
|
|
|
|
#upx sync ${local_path} ${remote_path} --delete
|
|
|
|
#./upx sync ${local_path} ${remote_path} --delete
|
|
|
|
echo "upx upload successful!"
|
|
|
|
echo "upx upload successful!"
|
|
|
|
upx logout
|
|
|
|
./upx logout
|
|
|
|