def start_letsencrypt_setup():
sudo("mkdir -p /tmp/git")
sudo("rm -rf /tmp/git/letsencrypt")
with cd("/tmp/git"):
sudo("git clone https://github.com/letsencrypt/letsencrypt")
with cd("/tmp/git/letsencrypt"):
sudo('./letsencrypt-auto certonly --standalone')
sudo('rm -rf /tmp/git')
评论列表
文章目录