17
0
Files
opensuse-mariadb-image/config.sh
Thorsten Kukuk 08952abf7a Accepting request 780381 from home:kukuk:container
- Fix parsing of default value output of mysqld
- Fix init_db call to allow correct setup of database

- Remove database if init failed

OBS-URL: https://build.opensuse.org/request/show/780381
OBS-URL: https://build.opensuse.org/package/show/devel:kubic:containers/opensuse-mariadb-image?expand=0&rev=13
2020-02-28 21:36:29 +00:00

17 lines
441 B
Bash

#!/bin/sh
#--------------------------------------
#test -f /.profile && . /.profile
#======================================
# Greeting...
#--------------------------------------
echo "Configure image: [$kiwi_iname]..."
# Disable binding to localhost only, doesn't make sense in a container
sed -i -e 's|^\(bind-address.*\)|#\1|g' /etc/my.cnf
# Disable log_error to log to stderr
sed -i -e 's|^\(log-error.*\)|#\1|g' /etc/my.cnf
exit 0