#!/bin/sh

echo "create log files"

#su www-data -s /bin/bash -c "mkdir /var/www/html/temp"
#su www-data -s /bin/bash -c "mkdir /var/www/html/logs"
#su www-data -s /bin/bash -c "cd /var/www/html/logs"
#su www-data -s /bin/bash -c "touch tbserver-log.txt"
#su www-data -s /bin/bash -c "touch tbserver-cron-log.txt"

su www-data -s /bin/bash
mkdir /var/www/html/temp
mkdir /var/www/html/logs
cd /var/www/html/logs
touch tbserver-log.txt
touch tbserver-cron-log.txt

echo "$@"
docker-php-entrypoint "$@"
