aboutsummaryrefslogtreecommitdiff
path: root/utils/mariadb/files
diff options
context:
space:
mode:
authorSebastian Kemper <sebastian_ml@gmx.net>2018-05-13 08:42:42 +0200
committerSebastian Kemper <sebastian_ml@gmx.net>2018-05-13 08:42:44 +0200
commit3bdaa522df40c467ac6a75425777a306aa081dfa (patch)
tree411fb0267179257d59965cbd9d37c26478c1da8a /utils/mariadb/files
parentf1b49babad5093f497a99fb1f4e2ea6f449e6084 (diff)
mariadb: fix /etc/mysql setup
- create directory /etc/mysql/conf.d as without it the server refuses to start - correct the path to my.cnf in the init script Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Diffstat (limited to 'utils/mariadb/files')
-rw-r--r--utils/mariadb/files/mysqld.init2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/mariadb/files/mysqld.init b/utils/mariadb/files/mysqld.init
index 98c8c65c4..fcd08d61e 100644
--- a/utils/mariadb/files/mysqld.init
+++ b/utils/mariadb/files/mysqld.init
@@ -10,7 +10,7 @@ SERVICE_STOP_TIME=9
PROG='/usr/bin/mysqld'
start() {
- local conf='/etc/my.cnf'
+ local conf='/etc/mysql/my.cnf'
local datadir="$( sed -nE "s/^\s*datadir\s*=\s*('([^']*)'|\x22([^\x22]*)\x22|(.*\S))\s*$/\2\3\4/p" "$conf" )"
[ -d "$datadir" ] || {