更新证书设置为强制更新,定时器增加时间范围提示

This commit is contained in:
lsy 2024-11-15 14:23:08 +08:00
parent edda6485bb
commit 95891ac2f1
2 changed files with 2 additions and 2 deletions

View File

@ -3,5 +3,5 @@ declare path="$1"
cat > "${path}/acme_update.sh" << EOF
#!/bin/bash
${HOME}/.acme.sh/acme.sh --upgrade
${HOME}/.acme.sh/acme.sh --renew-all
${HOME}/.acme.sh/acme.sh --renew-all --force
EOF

View File

@ -35,7 +35,7 @@ echo "斜线(/):用于指定间隔值"
echo "连字符(-):用于指定范围"
declare tmp_time
declare -a cron_array=("分钟" "小时" "天数" "月份" "星期" )
declare -a cron_array=("分钟 059" "小时 023" "天数 131" "月份 112" "星期 07" )
for i in "${cron_array[@]}";do
read -p "${i},默认为 * " tmp_time
if [[ $tmp_time =~ ^[0-9]+$ || $tmp_time == '*' ]];then