ajotu de la condition root pour find_hostname
This commit is contained in:
@@ -1,5 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Importer les fonctions communes
|
||||||
|
source "$(dirname "$0")/../common/common_utils.sh"
|
||||||
|
|
||||||
|
# Vérifier si le script est exécuté en root
|
||||||
|
check_root
|
||||||
|
|
||||||
# Vérifie si une IP est fournie
|
# Vérifie si une IP est fournie
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
echo "Usage: $0 <IP>"
|
echo "Usage: $0 <IP>"
|
||||||
|
|||||||
Reference in New Issue
Block a user