changeset 235:e602c5f974ac puppet-3.6

Make a cron job for updating Wordpress
author IBBoard <dev@ibboard.co.uk>
date Sun, 15 Dec 2019 16:28:47 +0000
parents d91fb2fedbae
children 4519b727cc4c
files manifests/templates.pp
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/manifests/templates.pp	Tue Dec 10 20:28:38 2019 +0000
+++ b/manifests/templates.pp	Sun Dec 15 16:28:47 2019 +0000
@@ -570,6 +570,13 @@
 		letsencrypt_name => 'bdstrike.co.uk',
 		separate_log => true,
 	}
+	cron { 'wordpress_cron':
+		# Run "php -f wp-cron.php" on a schedule so that we can auto-update
+		# without giving Apache full write access!
+		command => "/usr/local/bin/bdstrike-cron",
+		user => $defaultusers::default_user,
+		minute => '*/15',
+	}
 }
 class devsite {
 	apache::mod {