Skip to content

Commit

Permalink
tt-rss: use proper user and package for MySQL
Browse files Browse the repository at this point in the history
  • Loading branch information
lukateras committed Mar 6, 2018
1 parent 527eb35 commit 5905fe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/services/web-apps/tt-rss.nix
Expand Up @@ -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}"} \
Expand Down

0 comments on commit 5905fe0

Please sign in to comment.