summary refs log tree commit diff
path: root/nixos/modules/services/databases
diff options
context:
space:
mode:
authorAaron Andersen <aaron@fosslib.net>2019-06-27 12:14:35 -0400
committerGitHub <noreply@github.com>2019-06-27 12:14:35 -0400
commitae02678a9d93b1d8bc1ed6ce357af9b71bb89e2a (patch)
tree5b2d07563d4befe3f49dde3fa84d5a42ce8e03e6 /nixos/modules/services/databases
parent277f865c2ae1b99001ea67d1f20890e2a3eb6c87 (diff)
parentfb918a9254b5085d9bdb7eec36907da52a6cef70 (diff)
downloadnixpkgs-ae02678a9d93b1d8bc1ed6ce357af9b71bb89e2a.tar
nixpkgs-ae02678a9d93b1d8bc1ed6ce357af9b71bb89e2a.tar.gz
nixpkgs-ae02678a9d93b1d8bc1ed6ce357af9b71bb89e2a.tar.bz2
nixpkgs-ae02678a9d93b1d8bc1ed6ce357af9b71bb89e2a.tar.lz
nixpkgs-ae02678a9d93b1d8bc1ed6ce357af9b71bb89e2a.tar.xz
nixpkgs-ae02678a9d93b1d8bc1ed6ce357af9b71bb89e2a.tar.zst
nixpkgs-ae02678a9d93b1d8bc1ed6ce357af9b71bb89e2a.zip
Merge pull request #63786 from aanderse/mysql
mysql: drop support for deprecated package & module option
Diffstat (limited to 'nixos/modules/services/databases')
-rw-r--r--nixos/modules/services/databases/mysql.nix16
1 files changed, 0 insertions, 16 deletions
diff --git a/nixos/modules/services/databases/mysql.nix b/nixos/modules/services/databases/mysql.nix
index 66d55b650a4..02f40683313 100644
--- a/nixos/modules/services/databases/mysql.nix
+++ b/nixos/modules/services/databases/mysql.nix
@@ -204,12 +204,6 @@ in
         '';
       };
 
-      # FIXME: remove this option; it's a really bad idea.
-      rootPassword = mkOption {
-        default = null;
-        description = "Path to a file containing the root password, modified on the first startup. Not specifying a root password will leave the root password empty.";
-      };
-
       replication = {
         role = mkOption {
           type = types.enum [ "master" "slave" "none" ];
@@ -400,16 +394,6 @@ in
                     cat ${toString cfg.initialScript} | ${mysql}/bin/mysql -u root -N
                   ''}
 
-                ${optionalString (cfg.rootPassword != null)
-                  ''
-                    # Change root password
-
-                    ( echo "use mysql;"
-                      echo "update user set Password=password('$(cat ${cfg.rootPassword})') where User='root';"
-                      echo "flush privileges;"
-                    ) | ${mysql}/bin/mysql -u root -N
-                  ''}
-
               rm /tmp/mysql_init
             fi