Skip to content

Commit

Permalink
Pass command line arguments to mysql commands
Browse files Browse the repository at this point in the history
  • Loading branch information
schneider-felix committed Mar 27, 2024
1 parent ad5a82f commit 76021cb
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/modules/services/mysql.nix
Original file line number Diff line number Diff line change
Expand Up @@ -293,11 +293,17 @@ in
MYSQL_TCP_PORT = toString cfg.settings.mysqld.port;
});

scripts.mysql.exec = "${mysqlWrapped}/bin/mysql";
scripts.mysql.exec = ''
${mysqlWrapped}/bin/mysql "$@"
'';

scripts.mysqladmin.exec = "${mysqladminWrapped}/bin/mysqladmin";
scripts.mysqladmin.exec = ''
${mysqladminWrapped}/bin/mysqladmin "$@"
'';

scripts.mysqldump.exec = "${mysqldumpWrapped}/bin/mysqldump";
scripts.mysqldump.exec = ''
${mysqldumpWrapped}/bin/mysqldump "$@"
'';

processes.mysql.exec = "${startScript}/bin/start-mysql";
processes.mysql-configure.exec = "${configureScript}/bin/configure-mysql";
Expand Down

0 comments on commit 76021cb

Please sign in to comment.