Skip to content
Snippets Groups Projects
Verified Commit d99ae766 authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

update fallback theme, use "path" instead of "slug" for mu_plugins path

parent 73b055a5
No related branches found
No related tags found
1 merge request!102Resolve "Custom plugin for WP"
Pipeline #11581 passed with stages
in 1 minute and 10 seconds
......@@ -49,14 +49,14 @@ wordpress:
# Turn on WordPress' debug mode
# debug: true
# Install includes all parent, child, default, active and fallback themes
# NOTE: Use theme *slugs* here
themes_install:
# Install includes all parent, child, default, active and fallback themes
# NOTE: Use theme *slugs* here. Can also be a URL to a theme zip file.
themes_install:
- twentynineteen
# this is the active theme. Also would be the child theme
# this is the active theme. Also would be the child theme
theme_active: twentynineteen
# Fallback theme from wordpress repo which is fetched + activated if helm reports an error
theme_fallback: twentytwenty
# Fallback theme from wordpress repo which is fetched + activated if helm reports an error
theme_fallback: twentytwenty
wp_content:
# The directory to mount the files placed in wp-content. You shouldn't have to
......@@ -88,11 +88,13 @@ wordpress:
mu_plugins_dir: mu-plugins
mu_plugins:
- name: Block Bad Queries
slug: block-bad-queries
# Path to the PHP files inside the plugin zip
path: block-bad-queries
# Entrypoint to plugin inside `path`
phpfile: block-bad-queries.php
url: https://downloads.wordpress.org/plugin/block-bad-queries.20200319.zip
- name: Stackspin
slug: stackspin-plugin
path: stackspin-plugin
phpfile: stackspin-plugin.php
url: https://github.com/level73/stackspin-plugin/archive/refs/heads/main.zip
......@@ -165,7 +167,7 @@ redis:
# persistence:
# # Set persistence to true you want redis to have persistence
# enabled: false
# # disableCommand is set as null to enable FLUSHALL and FLUSHDB and allow cache purge and flush
# # disableCommand is set as null to enable FLUSHALL and FLUSHDB and allow cache purge and flush
# disableCommands: []
# # Set architecture to "replication" to have a primary and secondary redis. Not necessary for caching
# architecture: "replication"
......@@ -199,7 +201,7 @@ redis:
# <hostname> <keytype> <key>
# # when isDate is true or unset the database is backed up as wp-db-RELEASE-DATE.sql
# # If isDate is set to false then backup names are a 2 week cycle of A(day number) or B(day number)
# # A monthly database backup and monthly wordpress manifest are always made with monthnumber prefix
# # A monthly database backup and monthly wordpress manifest are always made with monthnumber prefix
# isDate: true
# # The cron schedule that determines when backups are made.
# # Run at 3:37 every day.
......
......@@ -114,13 +114,13 @@ wordpress:
# Set to true to set WP_DEBUG on in the configuration
debug: false
# Install includes all parent, child, default, active and fallback themes
# Install includes all parent, child, default, active and fallback themes
# NOTE: Use theme *slugs* here
themes_install:
themes_install:
- twentynineteen
theme_active: twentynineteen
# Fallback theme from wordpress repo which is fetched + activated if helm reports an error
theme_fallback: twentytwenty
# Fallback theme from wordpress repo which is fetched + activated if helm reports an error
theme_fallback: twentytwentytwo
wp_content:
## The directory to mount the files placed in wp-content. You shouldn't have to
## change this.
......@@ -162,7 +162,7 @@ wordpress:
# secret: <overwrite this value in values-local.yaml>
name: Cron Control
repo: https://github.com/Automattic/wp-cron-control.git
slug: wp-cron-control
path: wp-cron-control
version: cecdec276f086aafb6765ea77ce8d2ce0948e01c
phpfile: wp-cron-control.php
cronjob:
......
......@@ -37,7 +37,7 @@
- name: Echo all the MU plugins filenames into the load.php file
lineinfile:
dest: "{{ WP_CONTENT_MOUNT }}/{{ WP_MU_PLUGINS_DIR }}/load.php"
line: "require(WPMU_PLUGIN_DIR . '/{{ wp_mu_plugin.slug }}/{{ wp_mu_plugin.phpfile }}');"
line: "require(WPMU_PLUGIN_DIR . '/{{ wp_mu_plugin.path }}/{{ wp_mu_plugin.phpfile }}');"
insertbefore: EOF
loop: "{{ WP_MU_PLUGINS }}"
loop_control:
......@@ -53,7 +53,7 @@
- name: Shallow clone from the github repository
git:
repo: "{{ WP_MU_CRON_SETTINGS.repo}}"
dest: "{{ WP_CONTENT_MOUNT }}/{{ WP_MU_PLUGINS_DIR }}/{{ WP_MU_CRON_SETTINGS.slug }}"
dest: "{{ WP_CONTENT_MOUNT }}/{{ WP_MU_PLUGINS_DIR }}/{{ WP_MU_CRON_SETTINGS.path }}"
force: yes
depth: 1
version: "{{ WP_MU_CRON_SETTINGS.version}}"
......@@ -62,7 +62,7 @@
- name: Append cron control plugin filename to the load.php file
lineinfile:
dest: "{{ WP_CONTENT_MOUNT }}/{{ WP_MU_PLUGINS_DIR }}/load.php"
line: "require(WPMU_PLUGIN_DIR . '/{{ WP_MU_CRON_SETTINGS.slug }}/{{ WP_MU_CRON_SETTINGS.phpfile}}');"
line: "require(WPMU_PLUGIN_DIR . '/{{ WP_MU_CRON_SETTINGS.path }}/{{ WP_MU_CRON_SETTINGS.phpfile}}');"
insertbefore: EOF
when: WP_MU_CRON_ENABLED
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment