Commit b9c11edc authored by Benjamin Rokseth's avatar Benjamin Rokseth
Browse files

entrypoint: add fix for mysql on overlayfs

parent 4a80da8e
......@@ -22,6 +22,8 @@ if [ "$KOHA_DBHOST" != "localhost" ]; then
fi
else
printf "No linked mysql or unable to connect to linked mysql $KOHA_DBHOST\n-- initializing local mysql ...\n"
# overlayfs fix for mysql
find /var/lib/mysql -type f -exec touch {} \;
/etc/init.d/mysql start
sleep 1 # waiting for mysql to spin up on slow computers
echo "127.0.0.1 $KOHA_DBHOST" >> /etc/hosts
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment