Archived
1
0
This repository has been archived on 2025-05-13. You can view files and clone it, but cannot push or open issues or pull requests.
Files
inception/srcs/configs/wordpress/entry/configure-wp_redis.sh

17 lines
481 B
Bash
Executable File

#!/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