Skip to content
Snippets Groups Projects
Commit 0ef45d3c authored by Elian Loraux's avatar Elian Loraux
Browse files

Domaine -> domain and translate comment to english

parent 5bf4e2c0
No related branches found
No related tags found
1 merge request!21Services desk 81 redistributivite securimag
......@@ -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"
)
......
......@@ -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
......
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment