Skip to content

Commit 9e68155

Browse files
LinYuanzhaohaoel
authored andcommitted
fix the bug at line 148
the judgment statement if ! crontab_exists "cerbot renew --force-renewal" at line 148 missing a letter 't'
1 parent 87b7991 commit 9e68155

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/install.ubuntu.18.04.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ crontab_exists() {
145145

146146
create_cron_job(){
147147
# 写入前先检查,避免重复任务。
148-
if ! crontab_exists "cerbot renew --force-renewal"; then
148+
if ! crontab_exists "certbot renew --force-renewal"; then
149149
echo "0 0 1 * * /usr/bin/certbot renew --force-renewal" >> /var/spool/cron/crontabs/root
150150
echo "${COLOR_SUCC}成功安装证书renew定时作业!${COLOR_NONE}"
151151
else

0 commit comments

Comments
 (0)