wikindx/docker-entrypoint-wikindx

16 lines
445 B
Plaintext
Raw Normal View History

2021-01-16 20:44:14 +01:00
#!/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
2021-02-06 22:21:10 +01:00
if [ ! -d /var/www/html/wikindx ]; then
2021-02-06 22:00:39 +01:00
mv /home/wikindx /var/www/html/
2021-02-06 22:21:10 +01:00
chown -R www-data.www-data /var/www/html/wikindx
2021-02-06 22:00:39 +01:00
fi
2021-01-16 20:44:14 +01:00
docker-php-entrypoint apache2-foreground