envole/misc/wordpress/containers/wordpress/entrypoint.sh
2024-02-29 16:46:23 +01:00

25 lines
577 B
Bash

#!/bin/bash
set -eo pipefail
cd /app/public
wp config create \
--allow-root \
--dbhost="${WORDPRESS_DB_HOST}" \
--dbname="${WORDPRESS_DB_NAME}" \
--dbuser="${WORDPRESS_DB_USER}" \
--dbpass="${WORDPRESS_DB_PASSWORD}" \
--dbcharset="utf8mb4" \
--locale="fr_FR"
wp core multisite-install \
--allow-root \
--url="${WORDPRESS_WEBURL}" \
--title="${WORDPRESS_TITLE}" \
--admin_user="${WORDPRESS_USER}" \
--admin_password="${WORDPRESS_PASSWORD}" \
--admin_email="${WORDPRESS_EMAIL}" \
--skip-email
exec $@