From f04b55d30c200a2824745a1d53390b6df03e2bdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=BF=98=E5=88=9D=E5=BF=83?= <1624717079@qq.com> Date: Wed, 21 Sep 2022 15:05:35 +0800 Subject: [PATCH] Update entrypoint.sh --- entrypoint.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 5e0ae02..c2b564b 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -6,16 +6,14 @@ apk update \ && 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 \ && tar -zxf upx.tar.gz \ - && chmod +x upx \ - && mv upx /usr/local/bin/upx + && chmod +x upx ### 执行upx upload -upx login ${bucket} ${operator} ${operator_password} +./upx login ${bucket} ${operator} ${operator_password} echo "start delete!" -upx ls -upx rm -a /* +./upx rm -a hugo/* echo "start upx upload!" -upx put ${local_path} ${remote_path} -#upx sync ${local_path} ${remote_path} --delete +./upx put ${local_path} ${remote_path} +#./upx sync ${local_path} ${remote_path} --delete echo "upx upload successful!" -upx logout +./upx logout