From a8fe23cc0d5967bd94f66a8898024ebb7807977d Mon Sep 17 00:00:00 2001
From: MattIPv4
Date: Tue, 26 May 2020 16:38:05 +0100
Subject: [PATCH] Use similar component & key technique in certbot
---
src/nginxconfig/templates/prism/bash.vue | 20 +++++
.../templates/setup_sections/certbot.vue | 79 ++++++-------------
2 files changed, 43 insertions(+), 56 deletions(-)
create mode 100644 src/nginxconfig/templates/prism/bash.vue
diff --git a/src/nginxconfig/templates/prism/bash.vue b/src/nginxconfig/templates/prism/bash.vue
new file mode 100644
index 0000000..6530adf
--- /dev/null
+++ b/src/nginxconfig/templates/prism/bash.vue
@@ -0,0 +1,20 @@
+
+
+
+
+
diff --git a/src/nginxconfig/templates/setup_sections/certbot.vue b/src/nginxconfig/templates/setup_sections/certbot.vue
index 5a4b45e..3de3c4c 100644
--- a/src/nginxconfig/templates/setup_sections/certbot.vue
+++ b/src/nginxconfig/templates/setup_sections/certbot.vue
@@ -6,7 +6,9 @@
Comment out SSL related directives in the configuration:
-
+
@@ -14,7 +16,7 @@
Reload your NGINX server:
- sudo nginx -t && sudo systemctl reload nginx
+
@@ -22,7 +24,7 @@
Obtain SSL certificates from Let's Encrypt using Certbot:
-
+
@@ -30,7 +32,7 @@
Uncomment SSL related directives in the configuration:
-
+
@@ -38,7 +40,7 @@
Reload your NGINX server:
- sudo nginx -t && sudo systemctl reload nginx
+
@@ -46,9 +48,9 @@
Configure Certbot to reload NGINX when it successfully renews certificates:
- echo -e '#!/bin/bash\nnginx -t && systemctl reload nginx' | sudo tee /etc/letsencrypt/renewal-hooks/post/nginx-reload.sh
+
- sudo chmod a+x /etc/letsencrypt/renewal-hooks/post/nginx-reload.sh
+
@@ -67,11 +69,14 @@