comment corrections only no code changes

This commit is contained in:
2025-12-06 11:57:30 +01:00
parent 0bebed0099
commit da873f8b5e

View File

@@ -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] <API Token>\n"
printf -- " [-h] <this screen>\n\n"
printf -- " [-h] <Show this help screen>\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 <<EOT