16 lines
445 B
Bash
Executable File
16 lines
445 B
Bash
Executable File
#!/bin/bash
|
|
/usr/bin/mysql_install_db -u mysql
|
|
/usr/bin/mysqld_safe --defaults-file=/etc/mysql/mariadb.cnf --basedir=/usr --socket=/var/run/mysqld/mysqld.sock --datadir='/var/lib/mysql' &
|
|
|
|
if [ ! -d /var/lib/mysql/wikindx6 ] ; then
|
|
sleep 1
|
|
mysql -u root < create.sql
|
|
fi
|
|
|
|
if [ ! -d /var/www/html/wikindx ]; then
|
|
mv /home/wikindx /var/www/html/
|
|
chown -R www-data.www-data /var/www/html/wikindx
|
|
fi
|
|
|
|
docker-php-entrypoint apache2-foreground
|