From 76e17dac8581e614ab0c80cc02538333bf7b449f Mon Sep 17 00:00:00 2001 From: Kenny Yang <45874689+shakenny@users.noreply.github.com> Date: Thu, 13 Jun 2024 13:34:55 +0800 Subject: [PATCH] Update init_env.sh --- FreetalkClubDev/init_env.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/FreetalkClubDev/init_env.sh b/FreetalkClubDev/init_env.sh index 1c94a06..0335352 100644 --- a/FreetalkClubDev/init_env.sh +++ b/FreetalkClubDev/init_env.sh @@ -38,6 +38,15 @@ cd ~ || exit wget -O ~/.auto_cert_renewal.sh https://raw.githubusercontent.com/shakenny/standard-docker/main/auto_cert_renewal.sh chmod +x ~/.auto_cert_renewal.sh +# 下载docker_password.txt +wget -O ~/docker_password https://raw.githubusercontent.com/shakenny/standard-docker/main/FreetalkClubDev/docker_password.txt + +# 读取 Docker Hub 登录密码 +DOCKER_PASSWORD=$(cat docker_password.txt) + +# 登录 Docker Hub +echo "$DOCKER_PASSWORD" | docker login --username shakennyyang --password-stdin + # 设置定时任务字符串 cron_job="0 0 * * * ~/.auto_cert_renewal.sh"