mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-13 21:32:23 +03:00
Merge cwoac:mysql_socket
This commit is contained in:
commit
42323dc155
@ -77,6 +77,14 @@ in
|
|||||||
description = "Location of the file which stores the PID of the MySQL server";
|
description = "Location of the file which stores the PID of the MySQL server";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enableSocketAccess = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = true;
|
||||||
|
description = ''
|
||||||
|
Whether to grant local processes access to the mysqld socket.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
extraOptions = mkOption {
|
extraOptions = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
example = ''
|
example = ''
|
||||||
@ -180,7 +188,8 @@ in
|
|||||||
chown -R ${cfg.user} ${cfg.pidDir}
|
chown -R ${cfg.user} ${cfg.pidDir}
|
||||||
|
|
||||||
# Make the socket directory
|
# Make the socket directory
|
||||||
mkdir -m 0755 -p /run/mysqld
|
mkdir -p /run/mysqld
|
||||||
|
chmod 0755 /run/mysqld
|
||||||
chown -R ${cfg.user} /run/mysqld
|
chown -R ${cfg.user} /run/mysqld
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user