「🏗️」 wip: mandatory finished need testing on real condition
This commit is contained in:
1
srcs/configs/wordpress/entry/configure-redis.sh
Executable file
1
srcs/configs/wordpress/entry/configure-redis.sh
Executable file
@ -0,0 +1 @@
|
||||
#!/bin/sh
|
14
srcs/configs/wordpress/entry/configure-wp.sh
Executable file
14
srcs/configs/wordpress/entry/configure-wp.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
WP_DIR="/var/www/wordpress"
|
||||
|
||||
if [ -f "${WP_DIR}/wp-config.php" ]; then
|
||||
echo "Wordpress already configured, skipping installation"
|
||||
else
|
||||
echo "Confiruring wordpress..."
|
||||
sleep 1
|
||||
echo $TZ
|
||||
wp --allow-root core config --dbname=${WP_DB_NAME} --dbuser=${WP_DB_USER} --dbpass=${WP_DB_PASS} --dbhost=${WP_DB_HOST} --dbprefix=wp_ --path=${WP_DIR}
|
||||
wp --allow-root core install --url=https://${WP_URL} --title="${WP_TITLE}" --admin_user=${WP_ADMIN_USER} --admin_password=${WP_ADMIN_PASS} --admin_email=${WP_ADMIN_EMAIL} --path=${WP_DIR}
|
||||
wp option update blog_public ${WP_SEARCH_ENGINE_VISIBILITY} --allow-root
|
||||
fi
|
Reference in New Issue
Block a user