diff options
author | Thorsten Weber <cpt.chaos83@googlemail.com> | 2019-07-03 08:50:21 +0200 |
---|---|---|
committer | Thorsten Weber <cpt.chaos83@googlemail.com> | 2019-07-03 08:50:21 +0200 |
commit | 46ea3ebc19bfc056760841f073b08c3e259c2190 (patch) | |
tree | 3841fb694c2f76f645efb8e2db4ac3aed6ba87d7 /nixos/modules/services/databases | |
parent | b7907dc1ae3097293e1bb05d2a0c679b0959dea3 (diff) | |
download | nixlib-46ea3ebc19bfc056760841f073b08c3e259c2190.tar nixlib-46ea3ebc19bfc056760841f073b08c3e259c2190.tar.gz nixlib-46ea3ebc19bfc056760841f073b08c3e259c2190.tar.bz2 nixlib-46ea3ebc19bfc056760841f073b08c3e259c2190.tar.lz nixlib-46ea3ebc19bfc056760841f073b08c3e259c2190.tar.xz nixlib-46ea3ebc19bfc056760841f073b08c3e259c2190.tar.zst nixlib-46ea3ebc19bfc056760841f073b08c3e259c2190.zip |
nixos/mysql: make ExecStartPost script fail on error
Diffstat (limited to 'nixos/modules/services/databases')
-rw-r--r-- | nixos/modules/services/databases/mysql.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/modules/services/databases/mysql.nix b/nixos/modules/services/databases/mysql.nix index 177e742d65e6..df74cfc9a26b 100644 --- a/nixos/modules/services/databases/mysql.nix +++ b/nixos/modules/services/databases/mysql.nix @@ -319,7 +319,9 @@ in ExecStart = "${mysql}/bin/mysqld --defaults-file=/etc/my.cnf ${mysqldOptions} $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION"; ExecStartPost = let - setupScript = pkgs.writeShellScript "mysql-setup" '' + setupScript = pkgs.writeScript "mysql-setup" '' + #!${pkgs.runtimeShell} -e + ${optionalString (!hasNotify) '' # Wait until the MySQL server is available for use count=0 |