diff --git a/docker/php/supervisord.conf b/docker/php/supervisord.conf index df093b0f3..2ac079d7c 100644 --- a/docker/php/supervisord.conf +++ b/docker/php/supervisord.conf @@ -6,6 +6,16 @@ logfile_backups=10 loglevel=info pidfile=/var/run/supervisord.pid +[program:chmod] +command=chown -R www-data:www-data ./runtime/ && chmod -R 755 ./runtime/ && chown -R www-data:www-data ./upload/ && chmod -R 755 ./upload/ +directory=/var/www/html +autostart=true +autorestart=false +startretries=3 +startsecs=1 +stopasgroup=true +killasgroup=true + [program:php-fpm] command=php-fpm autostart=true