lnmp 1.4 beta certbot/certbot-auto
军哥,您好,我在lnmp1.4中的lnmp文件中看到如下代码,有的地方是certbot,有的地方又是certbot-auto的,
这样会有问题吗?
else
wget https://dl.eff.org/certbot-auto --no-check-certificate -O /bin/certbot
chmod +x /bin/certbot
if grep -Eqi "CentOS" /etc/issue || grep -Eq "CentOS" /etc/*-release; then
yum -y install epel-release
fi
fi
echo "Starting create SSL Certificate use Let's Encrypt..."
/bin/certbot certonly --email ${email} --agree-tos -n --webroot -w ${vhostdir} ${letsdomain}
lets_status=$?
if [ "${lets_status}" = 0 ]; then
Check_Lets_Cron
echo "Let's Encrypt SSL Certificate create successfully."
else
Echo_Red "Let's Encrypt SSL Certificate create failed!"
..................
..................
Check_Lets_Cron()
{
if crontab -l|grep -q "/bin/certbot renew";then
echo "Let's encrypt crontab renew rule is exist."
else
echo "Add Let's encrypt crontab renew rule..."
(crontab -l ; echo '0 3 */7 * * /bin/certbot renew --renew-hook "/etc/init.d/nginx reload"') | crontab - 没问题
回复 2# 的帖子
军哥:下载和安装certbot的文件是certbot-auto,然后获取证书和续期的文件是certbot了,应该会发生找不到该文件的错误吧?虽然他们的命令都相同,但两个是不同文件哦!
回复 3# 的帖子
那是你没看明白基本命令参数和脚本
页:
[1]