From 7bf024e82561989695caca4f0669da7bdaa4a43e Mon Sep 17 00:00:00 2001 From: becue Date: Tue, 7 Aug 2012 22:06:39 +0200 Subject: [PATCH] [Baie de disques] Permettre que update.sh soit modulaire. Ignore-this: 5edc9c80ef506e389c99f240b4efc4fa darcs-hash:20120807200639-ab199-aee17fd9ce1ad782b48f3aa0eedc66d4581af988.gz --- gestion/iscsi/update.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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