From 0ef45d3c7016f2c7db443b36ddfffc7c946c251f Mon Sep 17 00:00:00 2001
From: Elian Loraux <elian.loraux@tetras-libre.fr>
Date: Mon, 24 Feb 2025 08:30:17 +0100
Subject: [PATCH] Domaine -> domain and translate comment to english

---
 main.env.sample               |  6 +++---
 utils/configure_base_tools.sh | 10 +++++-----
 utils/getIgnoreIp.sh          | 10 +++++-----
 3 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/main.env.sample b/main.env.sample
index 90d5dab..a801a6f 100644
--- a/main.env.sample
+++ b/main.env.sample
@@ -8,7 +8,7 @@ export MODS="Base GlpiAgent Traefik"
 # Valid levels are security and upgrade
 export MAINTENANCE_LEVEL="security"
 
-# TODO change domain for you domaine of server
+# TODO change domain for you domain of server
 export DOMAIN="dev.tetras-libre.fr"
 
 # TODO change admin mail
@@ -18,8 +18,8 @@ export SERVER_ADMIN="sysadmin@tetras-libre.fr"
 # This has the consequence of whether or not the free tetras ssh public key is added to the authorized keys
 export TETRAS_MAINTENACE=true
 
-# TODO change ignore domaines for fail2ban
-export IGNORE_DOMAINES=(
+# TODO change ignore domains for fail2ban
+export IGNORE_DOMAINS=(
     "tetrix.tetras-libre.fr"
     "piculus.tetras-libre.fr"
 )
diff --git a/utils/configure_base_tools.sh b/utils/configure_base_tools.sh
index 622cb42..e4b1960 100755
--- a/utils/configure_base_tools.sh
+++ b/utils/configure_base_tools.sh
@@ -49,12 +49,12 @@ EOF
 
 ignoreips=()
 
-for domaine in "${IGNORE_DOMAINES[@]}"; do
-    # Utilise dig pour obtenir l'adresse IP
-    ip=$(dig +short "$domaine")
+for domain in "${IGNORE_DOMAINS[@]}"; do
+    # Use dig to get the IP address
+    ip=$(dig +short "$domain")
     ignoreips=("${ignoreips[@]}" $ip)
-    # Affiche le nom de domaine et l'adresse IP
-    echo "$domaine : $ip"
+    # Displays the domain name and IP addresss
+    echo "$domain : $ip"
 done
 
 cat <<EOF > /etc/fail2ban/jail.local
diff --git a/utils/getIgnoreIp.sh b/utils/getIgnoreIp.sh
index f8cdad8..1cff80a 100644
--- a/utils/getIgnoreIp.sh
+++ b/utils/getIgnoreIp.sh
@@ -17,10 +17,10 @@ fi
 
 ignoreips=()
 
-for domaine in "${IGNORE_DOMAINES[@]}"; do
-    # Utilise dig pour obtenir l'adresse IP
-    ip=$(dig +short "$domaine")
+for domain in "${IGNORE_DOMAINS[@]}"; do
+    # Use dig to get the IP address
+    ip=$(dig +short "$domain")
     ignoreips=("${ignoreips[@]}" $ip)
-    # Affiche le nom de domaine et l'adresse IP
-    echo "$domaine : $ip"
+    # Displays the domain name and IP address
+    echo "$domain : $ip"
 done
-- 
GitLab