From 193b13d2d0f53dc748fc181e252f7fed5345a62f Mon Sep 17 00:00:00 2001
From: xZero707 <xzero@elite7hackers.net>
Date: Wed, 17 Jun 2020 02:45:25 +0200
Subject: [PATCH] Make sure wp cli file has execute permissions

---
 Dockerfile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Dockerfile b/Dockerfile
index ebd02cc..e366a67 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -43,7 +43,8 @@ ENV WP_LOCALE             en_US
 ENV CRON_ENABLED          true
 ENV VIRTUAL_HOST          your-domain.com
 
-RUN echo "* * * * * /usr/local/bin/php /var/www/${WEB_ROOT}/wp-cron.php" >> /etc/crontabs/www-data
+RUN echo "* * * * * /usr/local/bin/php /var/www/${WEB_ROOT}/wp-cron.php" >> /etc/crontabs/www-data \
+    && chmod a+x /usr/local/bin/wp
 
 VOLUME ["/var/www/${WEB_ROOT}", "/var/www/${WEB_ROOT}/wp-content"]