From da873f8b5e609e5dbb67064af2dd99976d29aac6 Mon Sep 17 00:00:00 2001 From: allan Date: Sat, 6 Dec 2025 11:57:30 +0100 Subject: [PATCH] comment corrections only no code changes --- certbotinstall | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/certbotinstall b/certbotinstall index bacaa46..678dd9e 100755 --- a/certbotinstall +++ b/certbotinstall @@ -1,9 +1,8 @@ #!/usr/bin/env bash -# SPDX-License-Identifier: MIT # Author : Allan Christensen # First Created : 08042022 (DD-MM-YYYY) -# Description : Installs Certbot with Cloudflare and Dns Challenge on Ubuntu 24.04 +# Description : Installs Certbot with Cloudflare and DNS Challenge on Ubuntu 24.04 # License : MIT License (see LICENSE file for details) # @@ -14,17 +13,17 @@ if [[ $(id -u) -ne 0 ]]; then echo "" && echo "Must be root or use sudo" && echo # # If snapd is not installed or not working then die # -if ! timeout 2 snap version >/dev/null 2>&1; then echo "ERROR: snapd is not installed or not working — aborting" ; exit 1 ; fi +if ! timeout 2 snap version >/dev/null 2>&1; then echo "ERROR: snapd is not installed or not working — aborting..." ; exit 1 ; fi # # Function usage # usage () { printf -- "\ncertbotinstall\n\n" -printf -- "Note: Must be run as root or using sudo\n\n" +printf -- "Note: Must be run as root or with sudo\n\n" printf -- "Usage:\n" printf -- "sudo ./certbotinstall [-p] \n" -printf -- " [-h] \n\n" +printf -- " [-h] \n\n" printf -- "Examples:\n" printf -- "sudo ./certbotinstall -p 1234AkkbdceewEFJK\n\n" } @@ -49,7 +48,7 @@ while [[ $# -gt 0 ]]; do shift if [[ -z "$1" ]]; then usage - printf "ERROR: API TOKEN CANNOT BE EMPTY!\n\n" + printf "ERROR: API token cannot be empty!\n\n" exit 1 fi apitoken="$1" @@ -96,7 +95,7 @@ snap set certbot trust-plugin-with-root=ok snap install certbot-dns-cloudflare # -# Create the directory and the file that will store the api token +# Create the directory and the file that will store the API token # mkdir -p /etc/letsencrypt cat > /etc/letsencrypt/dnscloudflare.ini <