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 - diff --git a/schedule_config/config.sh b/schedule/config/config.sh similarity index 100% rename from schedule_config/config.sh rename to schedule/config/config.sh diff --git a/schedule_extra/01_mariadb.xml b/schedule/extra/01_mariadb.xml similarity index 100% rename from schedule_extra/01_mariadb.xml rename to schedule/extra/01_mariadb.xml diff --git a/schedule_scripts/mariadb b/schedule/scripts/mariadb similarity index 100% rename from schedule_scripts/mariadb rename to schedule/scripts/mariadb