From 06cd44142ea8619d71e9cd24760d90e076617859 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Aime?= Date: Wed, 20 Jan 2021 20:18:01 +0100 Subject: [PATCH] Updating the update script with new Let's Encrypt Issuer --- update.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/update.sh b/update.sh index 0e67fbc..5ff2bb6 100644 --- a/update.sh +++ b/update.sh @@ -45,7 +45,7 @@ elif [ $PWD = "/tmp/tinycheck" ]; then service tinycheck-frontend restart service tinycheck-watchers restart - # Updating configuration with new key-val pairs. + # Updating configuration with new values. if ! grep -q reboot_option /usr/share/tinycheck/config.yaml; then sed -i 's/frontend:/frontend:\n reboot_option: true/g' /usr/share/tinycheck/config.yaml fi @@ -58,5 +58,9 @@ elif [ $PWD = "/tmp/tinycheck" ]; then sed -i 's/frontend:/frontend:\n quit_option: true/g' /usr/share/tinycheck/config.yaml fi + if ! grep -q "CN=R3,O=Let's Encrypt,C=US" /usr/share/tinycheck/config.yaml; then + sed -i "s/free_issuers:/free_issuers:\n - CN=R3,O=Let's Encrypt,C=US/g" /usr/share/tinycheck/config.yaml + fi + echo "[+] TinyCheck updated!" fi \ No newline at end of file