mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
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>
This commit is contained in:
@@ -453,7 +453,7 @@ define Package/mariadb-server/install
|
|||||||
$(INSTALL_DIR) $(1)/usr/bin
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
$(foreach b,$(MARIADB_SERVER),$(call Package/mariadb/install/bin,$(1),$(b));)
|
$(foreach b,$(MARIADB_SERVER),$(call Package/mariadb/install/bin,$(1),$(b));)
|
||||||
$(INSTALL_DIR) $(1)/etc/init.d
|
$(INSTALL_DIR) $(1)/etc/init.d
|
||||||
$(INSTALL_DIR) $(1)/etc/mysql
|
$(INSTALL_DIR) $(1)/etc/mysql/conf.d
|
||||||
$(INSTALL_BIN) files/mysqld.init $(1)/etc/init.d/mysqld
|
$(INSTALL_BIN) files/mysqld.init $(1)/etc/init.d/mysqld
|
||||||
$(INSTALL_CONF) conf/my.cnf $(1)/etc/mysql
|
$(INSTALL_CONF) conf/my.cnf $(1)/etc/mysql
|
||||||
$(INSTALL_DIR) $(1)$(PLUGIN_DIR)
|
$(INSTALL_DIR) $(1)$(PLUGIN_DIR)
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ SERVICE_STOP_TIME=9
|
|||||||
PROG='/usr/bin/mysqld'
|
PROG='/usr/bin/mysqld'
|
||||||
|
|
||||||
start() {
|
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" )"
|
local datadir="$( sed -nE "s/^\s*datadir\s*=\s*('([^']*)'|\x22([^\x22]*)\x22|(.*\S))\s*$/\2\3\4/p" "$conf" )"
|
||||||
|
|
||||||
[ -d "$datadir" ] || {
|
[ -d "$datadir" ] || {
|
||||||
|
|||||||
Reference in New Issue
Block a user