Code Review
/
oom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "[Portal] Added Logging Compliance Specification Details"
[oom.git]
/
kubernetes
/
portal
/
components
/
portal-mariadb
/
resources
/
config
/
mariadb
/
docker-entrypoint.sh
diff --git
a/kubernetes/portal/components/portal-mariadb/resources/config/mariadb/docker-entrypoint.sh
b/kubernetes/portal/components/portal-mariadb/resources/config/mariadb/docker-entrypoint.sh
index
28fcee1
..
93d2b67
100644
(file)
--- a/
kubernetes/portal/components/portal-mariadb/resources/config/mariadb/docker-entrypoint.sh
+++ b/
kubernetes/portal/components/portal-mariadb/resources/config/mariadb/docker-entrypoint.sh
@@
-182,6
+182,13
@@
if [ "$1" = 'mysqld' -a -z "$wantHelp" ]; then
echo
done
echo
done
+ file_env 'PORTAL_DB_TABLES'
+ for i in $(echo $PORTAL_DB_TABLES | sed "s/,/ /g")
+ do
+ echo "Granting portal user ALL PRIVILEGES for table $i"
+ echo "GRANT ALL ON \`$i\`.* TO '$MYSQL_USER'@'%' ;" | "${mysql[@]}"
+ done
+
if ! kill -s TERM "$pid" || ! wait "$pid"; then
echo >&2 'MySQL init process failed.'
exit 1
if ! kill -s TERM "$pid" || ! wait "$pid"; then
echo >&2 'MySQL init process failed.'
exit 1
@@
-193,4
+200,4
@@
if [ "$1" = 'mysqld' -a -z "$wantHelp" ]; then
fi
fi
fi
fi
-exec "$@"
\ No newline at end of file
+exec "$@"