feat(inception imporing stuff (come back on the subject)
This commit is contained in:
parent
b20e81b0fe
commit
778e1a9056
6 changed files with 64 additions and 14 deletions
19
srcs/requirements/wordpress/tools/install.sh
Normal file
19
srcs/requirements/wordpress/tools/install.sh
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/sh
|
||||
|
||||
cd /var/www/html
|
||||
|
||||
mariadb-admin --host=mariadb --port=3306 --user="$DB_USER" --password="$DB_PASS" --wait status
|
||||
|
||||
if ! [ -f wp-load.php ]; then
|
||||
wp core download --locale=fr_FR --allow-root --path=/var/www/html
|
||||
fi
|
||||
|
||||
if ! [ -f wp-config.php ]; then
|
||||
wp config create --dbname=$DB_NAME --dbuser=$DB_USER --dbpass=$DB_PASSWORD --dbhost=$DB_HOST --skip-check --path=/var/www/html --allow-root
|
||||
wp core install --url=$DOMAIN --title=$WP_TITLE --admin_user=$WP_ADMIN --admin_password=$WP_PASS_ADMIN --admin_email=$WP_MAIL_ADMIN --skip-email --path=/var/www/html --allow-root
|
||||
fi
|
||||
|
||||
chown wordpress:wordpress -R /var/www/html
|
||||
chmod -R +rw /var/www/html
|
||||
|
||||
exec php-fpm --nodeamonize
|
||||
Loading…
Add table
Add a link
Reference in a new issue