mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 14:36:17 +00:00
refactoring
This commit is contained in:
13
resources/commands/ssl/create-custom-ssl.sh
Normal file
13
resources/commands/ssl/create-custom-ssl.sh
Normal file
@ -0,0 +1,13 @@
|
||||
if ! sudo mkdir __path__; then
|
||||
echo 'VITO_SSH_ERROR' && exit 1
|
||||
fi
|
||||
|
||||
if ! echo __certificate__ | sudo tee __certificate_path__; then
|
||||
echo 'VITO_SSH_ERROR' && exit 1
|
||||
fi
|
||||
|
||||
if ! echo __pk__ | sudo tee __pk_path__; then
|
||||
echo 'VITO_SSH_ERROR' && exit 1
|
||||
fi
|
||||
|
||||
echo "Successfully received certificate."
|
3
resources/commands/ssl/create-letsencrypt-ssl.sh
Normal file
3
resources/commands/ssl/create-letsencrypt-ssl.sh
Normal file
@ -0,0 +1,3 @@
|
||||
if ! sudo certbot certonly --force-renewal --nginx --noninteractive --agree-tos --cert-name __domain__ -m __email__ -d __domain__ --verbose; then
|
||||
echo 'VITO_SSH_ERROR' && exit 1
|
||||
fi
|
1
resources/commands/ssl/install-certbot.sh
Executable file
1
resources/commands/ssl/install-certbot.sh
Executable file
@ -0,0 +1 @@
|
||||
sudo DEBIAN_FRONTEND=noninteractive apt install certbot python3-certbot-nginx -y
|
Reference in New Issue
Block a user