From c1937f740926b8da7749f80c170f280482cae192 Mon Sep 17 00:00:00 2001 From: Ashley Deane Date: Thu, 12 Oct 2017 16:17:39 +0100 Subject: [PATCH] Update wordpress cmd to fix uploads permissions and apache cmd --- wordpress-volumes/wordpress-web.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wordpress-volumes/wordpress-web.yml b/wordpress-volumes/wordpress-web.yml index 8f9d97a..e0fd6a2 100644 --- a/wordpress-volumes/wordpress-web.yml +++ b/wordpress-volumes/wordpress-web.yml @@ -13,7 +13,7 @@ spec: - name: wordpress image: wordpress:4-php7.0 # uncomment to fix perm issue, see also https://github.com/kubernetes/kubernetes/issues/2630 - # command: ['bash', '-c', 'chown', 'www-data:www-data', '/var/www/html/wp-content/upload', '&&', 'apache2', '-DFOREGROUND'] + # command: ['bash', '-c', 'chown www-data:www-data /var/www/html/wp-content/uploads && apache2-foreground'] ports: - name: http-port containerPort: 80