Install stuff after the container is created
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
/bin/sh /entrypoint/fix_volumes.sh
|
||||
|
||||
service mariadb start
|
||||
# Run the CMD that was passed (or default)
|
||||
#exec "$@"
|
||||
exec "$@"
|
||||
|
||||
tail -f /dev/null
|
||||
|
||||
|
@@ -1,18 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
#mkdir -p /etc/mysql # Creates /etc/php if it doesn't exist
|
||||
#mkdir -p /var/lib/mysql # Creates /etc/php if it doesn't exist
|
||||
[ -d "/etc/mysql" ] || mkdir -p /etc/mysql
|
||||
[ -d "/var/lib/mysql" ] || mkdir -p /var/lib/mysql
|
||||
|
||||
if [ ! -f /etc/mysql/my.cnf ]; then
|
||||
cp -a /tmp/buildtime/etc/mysql/* /etc/mysql/
|
||||
rm -rf /tmp/buildtime/etc/mysql/
|
||||
fi
|
||||
|
||||
if [ "$(ls -A /var/lib/mysql)" ]; then
|
||||
cp -a /tmp/buildtime/var/lib/mysql/* /var/lib/mysql #&& rm -rf /tmp/buildtime/var/lib/mysql
|
||||
fi
|
||||
|
||||
chown -R mysql:mysql /var/lib/mysql
|
||||
chown -R mysql:root /run/mysqld
|
Reference in New Issue
Block a user