Skip to content

Instantly share code, notes, and snippets.

View gentoo-mariadb-initd-user.patch
--- a/files/init.d-2.2 2018-04-26 10:56:44.452592421 -0400
+++ b/files/init.d-2.2 2018-04-26 11:55:20.408548260 -0400
@@ -74,6 +74,7 @@
fi
# tail -n1 is critical as these we only want the last instance of the option
+ local user=$(get_config "${MY_CNF}" user | tail -n1)
local basedir=$(get_config "${MY_CNF}" basedir | tail -n1)
local pidfile=$(get_config "${MY_CNF}" pid-file | tail -n1)
local socket=$(get_config "${MY_CNF}" socket | tail -n1)