Update init_env.sh
This commit is contained in:
1 parent
c58fdb5f7b
commit
76e17dac85
1 file changed
+9
@@ -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"
|
||||
|
||||
|
||||
Reference in new issue
Block a user