From 0327098015660f61a631fe6bb4d2c70dbabd9766 Mon Sep 17 00:00:00 2001 From: Teddy Cornaut Date: Wed, 13 Mar 2019 15:19:02 +0100 Subject: [PATCH] =?UTF-8?q?Correction=20boucle=20de=20d=C3=A9finitions=20d?= =?UTF-8?q?es=20droits=20utilisateurs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- postservice/25-bdd-admin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/postservice/25-bdd-admin b/postservice/25-bdd-admin index 2d6df4f..d830941 100755 --- a/postservice/25-bdd-admin +++ b/postservice/25-bdd-admin @@ -28,6 +28,8 @@ then previousUsers=($(awk -F ':' '{print $1}' ${readerfile} )) + index=0 + for user in ${accounts[@]} do PASS=$(awk -F ':' "/${user}:/ {print \$2}" ${readerfile}) @@ -54,7 +56,6 @@ then done fi - index=0 for hst in ${hostsList[@]} do SQL="DROP USER IF EXISTS '${user}'@'${hst}';" @@ -86,4 +87,3 @@ then fi exit 0 -