#!/bin/sh

set -e

chown -R nobody /var/www
chown -R nobody /var/dokuwiki-storage

su -s /bin/sh nobody -c 'php7 /var/www/bin/indexer.php -c'

exec /usr/bin/supervisord -c /etc/supervisord.conf

#!/bin/sh

set -e

chown -R nobody /var/lib/nginx
chown -R nobody /var/www
chown -R nobody /var/dokuwiki-storage


su -s /bin/sh nobody -c 'php7 /var/www/bin/indexer.php -c'

exec /usr/bin/supervisord -c /etc/supervisord.conf

Add chmod for nginx temporary dirs
Add chmod for nginx temporary dirs
