Make sure wp cli file has execute permissions

This commit is contained in:
xZero707 2020-06-17 02:45:25 +02:00
parent db924a5a17
commit 193b13d2d0

View File

@ -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"]