feat: add app files

This commit is contained in:
Lenoctambule
2026-04-02 12:04:23 +02:00
parent e3f5cf6a1e
commit f8a48ee181
13 changed files with 524 additions and 0 deletions

View 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