mariadb and nginx works both with debian and alpine

+ makefile a little clean up
This commit is contained in:
hugo gogo
2022-09-18 16:39:13 +02:00
parent 5d01ad0fdc
commit 9708715bb5
9 changed files with 134 additions and 67 deletions

View File

@@ -4,6 +4,10 @@
mkdir -p ${WP_DIR}
wp core download --path="${WP_DIR}" --allow-root
# mariadb --execute="CREATE DATABASE ${DB_NAME};" && \
# mariadb --execute="CREATE USER '${DB_USER}'@'localhost' IDENTIFIED BY '${DB_PSWD}';" && \
# mariadb --execute="GRANT ALL PRIVILEGES ON ${DB_NAME}.* TO '${DB_USER}'@'localhost' with grant option;"
## create config file :
wp config create \
--dbhost=mariadb \