Browse Source

Correction boucle de définitions des droits utilisateurs

tags/pkg/staging/eole-2.7.0/0.1.0-0
Teddy Cornaut 5 months ago
parent
commit
0327098015
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      postservice/25-bdd-admin

+ 2
- 2
postservice/25-bdd-admin View File

@@ -28,6 +28,8 @@ then
28 28
 
29 29
     previousUsers=($(awk -F ':' '{print $1}' ${readerfile} ))
30 30
 
31
+    index=0
32
+
31 33
     for user in ${accounts[@]}
32 34
     do
33 35
         PASS=$(awk -F ':' "/${user}:/ {print \$2}" ${readerfile})
@@ -54,7 +56,6 @@ then
54 56
             done
55 57
         fi
56 58
 
57
-        index=0
58 59
         for hst in ${hostsList[@]}
59 60
         do
60 61
             SQL="DROP USER IF EXISTS '${user}'@'${hst}';"
@@ -86,4 +87,3 @@ then
86 87
 fi
87 88
 
88 89
 exit 0
89
-

Loading…
Cancel
Save