pushd ${oneinstack_dir}/src
src_url=https://dl.eff.org/certbot-auto && Download_src
/bin/mv certbot-auto /usr/local/bin/
=》mv前的/bin能都去掉吗?
chmod +x /usr/local/bin/certbot-auto
certbot-auto -n
popd
if [ -e "/root/.local/share/letsencrypt/bin/letsencrypt" ] && certbot-auto -h | grep '\-\-standalone' > /dev/null ; then
echo; echo "${CSUCCESS}Let's Encrypt client installed successfully! ${CEND}"
else
echo; echo "${CFAILURE}Let's Encrypt client install failed, Please try again! ${CEND}"
fi
}
Uninstall_letsencrypt() {
rm -rf /usr/local/bin/cerbot-auto /etc/letsencrypt /var/log/letsencrypt
[ "${OS}" == "CentOS" ] && Cron_file=/var/spool/cron/root || Cron_file=/var/spool/cron/crontabs/root
sed -i '/certbot-auto/d' ${Cron_file}
echo; echo "${CMSG}Let's Encrypt client uninstall completed${CEND}";
=》删除的是否其实还有一个目录:/var/lib/letsencrypt,干净删除的话是否也应该删除这个目录啊!
src_url=https://dl.eff.org/certbot-auto && Download_src
/bin/mv certbot-auto /usr/local/bin/
=》mv前的/bin能都去掉吗?
chmod +x /usr/local/bin/certbot-auto
certbot-auto -n
popd
if [ -e "/root/.local/share/letsencrypt/bin/letsencrypt" ] && certbot-auto -h | grep '\-\-standalone' > /dev/null ; then
echo; echo "${CSUCCESS}Let's Encrypt client installed successfully! ${CEND}"
else
echo; echo "${CFAILURE}Let's Encrypt client install failed, Please try again! ${CEND}"
fi
}
Uninstall_letsencrypt() {
rm -rf /usr/local/bin/cerbot-auto /etc/letsencrypt /var/log/letsencrypt
[ "${OS}" == "CentOS" ] && Cron_file=/var/spool/cron/root || Cron_file=/var/spool/cron/crontabs/root
sed -i '/certbot-auto/d' ${Cron_file}
echo; echo "${CMSG}Let's Encrypt client uninstall completed${CEND}";
=》删除的是否其实还有一个目录:/var/lib/letsencrypt,干净删除的话是否也应该删除这个目录啊!