This commit is contained in:
Benjamin Toby
2024-12-08 20:39:44 +01:00
parent 13b67425b8
commit eb723c8195
660 changed files with 69 additions and 8256 deletions
+2 -2
View File
@@ -128,7 +128,7 @@ if [[ $? == 0 ]]; then
echo "$DSQL_DB_READ_ONLY_USERNAME User Exists"
else
echo "No $DSQL_DB_READ_ONLY_USERNAME User. Creating ..."
query_db_with_main_root "CREATE USER IF NOT EXISTS '$DSQL_DB_READ_ONLY_USERNAME'@'$DSQL_DB_TARGET_IP_ADDRESS' IDENTIFIED BY '$DSQL_DB_READ_ONLY_PASSWORD' REQUIRE SSL;"
query_db_with_main_root "CREATE USER IF NOT EXISTS '$DSQL_DB_READ_ONLY_USERNAME'@'$DSQL_DB_TARGET_IP_ADDRESS' IDENTIFIED BY '$DSQL_DB_READ_ONLY_PASSWORD';"
fi
## ==========================
@@ -141,7 +141,7 @@ if [[ $? == 0 ]]; then
echo "$DSQL_DB_FULL_ACCESS_USERNAME User Exists"
else
echo "No $DSQL_DB_FULL_ACCESS_USERNAME User. Creating ..."
query_db_with_main_root "CREATE USER IF NOT EXISTS '$DSQL_DB_FULL_ACCESS_USERNAME'@'$DSQL_DB_TARGET_IP_ADDRESS' IDENTIFIED BY '$DSQL_DB_FULL_ACCESS_PASSWORD' REQUIRE SSL;"
query_db_with_main_root "CREATE USER IF NOT EXISTS '$DSQL_DB_FULL_ACCESS_USERNAME'@'$DSQL_DB_TARGET_IP_ADDRESS' IDENTIFIED BY '$DSQL_DB_FULL_ACCESS_PASSWORD';"
fi
query_db_with_main_root "FLUSH PRIVILEGES;"