「✨」 feat: finished last containers
This commit is contained in:
@ -1 +0,0 @@
|
||||
#!/bin/sh
|
16
srcs/configs/wordpress/entry/configure-wp_redis.sh
Executable file
16
srcs/configs/wordpress/entry/configure-wp_redis.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
|
||||
echo ${REDIS_HOSTNAME}
|
||||
if [ -f "/redis.ok" ]; then
|
||||
echo "[*] redis-cache already installed and configured"
|
||||
else
|
||||
echo "[*] Installing redis-cache plugin"
|
||||
wp --allow-root config set WP_REDIS_HOST ${REDIS_HOSTNAME}
|
||||
wp --allow-root config set WP_REDIS_PORT ${REDIS_PORT}
|
||||
wp --allow-root config set WP_CACHE_KEY_SALT ${WP_URL}
|
||||
wp --allow-root plugin install redis-cache --activate
|
||||
wp --allow-root plugin update --all
|
||||
wp --allow-root redis enable
|
||||
touch /redis.ok
|
||||
fi
|
Reference in New Issue
Block a user