feat: add app files
This commit is contained in:
13
files/inception/srcs/mariadb/entrypoint.sh
Normal file
13
files/inception/srcs/mariadb/entrypoint.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
echo "[Starting Mariadb]"
|
||||
service mariadb start
|
||||
echo "[Initialising database for Wordpress]"
|
||||
echo "CREATE DATABASE wp_db; \
|
||||
CREATE USER \"$DB_USER\"@\"%\"; \
|
||||
SET password FOR \"$DB_USER\"@\"%\" = password(\"$DB_PWD\"); \
|
||||
ALTER USER \"root\"@\"localhost\" IDENTIFIED BY \"$DB_ROOT_PWD\"; \
|
||||
GRANT ALL PRIVILEGES ON wp_db.* TO \"$DB_USER\"@\"%\" IDENTIFIED BY \"$DB_PWD\"; \
|
||||
FLUSH PRIVILEGES" | mysql
|
||||
service mariadb stop
|
||||
echo "[Starting checks on mariadb]"
|
||||
mysqld --bind-address=0.0.0.0
|
||||
Reference in New Issue
Block a user