botsArena/dockerConfig/run.sh

15 lines
402 B
Bash
Raw Normal View History

#!/bin/bash
VOLUME_HOME="/var/lib/mysql"
sed -ri -e "s/^upload_max_filesize.*/upload_max_filesize = ${PHP_UPLOAD_MAX_FILESIZE}/" \
-e "s/^post_max_size.*/post_max_size = ${PHP_POST_MAX_SIZE}/" /etc/php5/apache2/php.ini
if [[ ! -d $VOLUME_HOME/mysql ]]; then
mysql_install_db > /dev/null 2>&1
/populate_mysql.sh
else
echo "=> Using an existing volume of MySQL"
fi
exec supervisord -n