diff --git a/gestion/iscsi/update.sh b/gestion/iscsi/update.sh index dc6963b5..c36b2e76 100644 --- a/gestion/iscsi/update.sh +++ b/gestion/iscsi/update.sh @@ -2,6 +2,7 @@ # update.sh # --------- +# Qui taper si ça chie : Pierre-Elliott Bécue # Copyright : (c) 2008, Jeremie Dimino # Licence : BSD3 @@ -26,8 +27,14 @@ exec_cmd() { fi } +if [[ $1 = "" ]]; then + BAIE="slon" +else + BAIE="$1" +fi + exec_cmd "Récupération du mapping lun<->nom de volume" \ - python /usr/scripts/gestion/iscsi/nols-get-volume-mapping.py + python /usr/scripts/gestion/iscsi/"$BAIE"-get-volume-mapping.py exec_cmd "Rechargement des règles de udev" \ invoke-rc.d udev reload