diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2018-03-06 14:20:55 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-06 14:20:55 +0000 |
commit | 9d937e3fc8013f335ca5c2de94de26a00b6d84d7 (patch) | |
tree | ac57f7d133eaee5a0f068fde72aec25e8b0390cb /nixos | |
parent | ece4c62d4b3f6f53935ece6b9cd5efe644cee79b (diff) | |
parent | 5905fe069b02c2df5db5025b2f8311c75c394d5b (diff) |
Merge pull request #36367 from NixOS/yegortimoshenko-patch-1
tt-rss: use proper user and package for MySQL
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/web-apps/tt-rss.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/web-apps/tt-rss.nix b/nixos/modules/services/web-apps/tt-rss.nix index c784f4756d197..8f7a56189a074 100644 --- a/nixos/modules/services/web-apps/tt-rss.nix +++ b/nixos/modules/services/web-apps/tt-rss.nix @@ -505,7 +505,7 @@ let ${cfg.database.name}'' else if cfg.database.type == "mysql" then '' - echo '${e}' | ${pkgs.mysql}/bin/mysql \ + echo '${e}' | ${pkgs.sudo}/bin/sudo -u ${cfg.user} ${config.services.mysql.package}/bin/mysql \ -u ${cfg.database.user} \ ${optionalString (cfg.database.password != null) "-p${cfg.database.password}"} \ ${optionalString (cfg.database.host != null) "-h ${cfg.database.host} -P ${toString dbPort}"} \ |