简体   繁体   English

Certbot-auto - 通过 shell 脚本运行?

[英]Certbot-auto - run via shell script?

My aim is to create a shell script dynamically on writing just the folder name and i have achieved this now the challenge is to make it secured coming across i got certbot-auto to run which requires certain things to be done when we hit it manually but i need to do it via shell script something like:我的目标是在仅写入文件夹名称时动态创建一个 shell 脚本,现在我已经实现了这一点,现在面临的挑战是确保它安全,我让 certbot-auto 运行,这需要在我们手动点击它时完成某些事情,但是我需要通过 shell 脚本来做到这一点,例如:

#!/bin/bash
# My first script
/*****MY SITE CREATION SCRIPT*****/

a2ensite $1.work

sleep 2

certbot-auto /*CAN WE DO THIS IN JUST ONE GO*/

echo $1.' site enabled - certbot running'

i read $1.work variable and create directory use mkdir commnad我读了 $1.work 变量并使用 mkdir commnad 创建目录

mkdir  $1.work   
cd $1.work

why you need this certbot also provide a create directory and auto-renew.为什么你需要这个 certbot 还提供一个创建目录和自动更新。

I will suggest referring this https://certbot.eff.org/all-instructions我会建议参考这个https://certbot.eff.org/all-instructions

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM