nixbld: fix mysql backup auth

This commit is contained in:
Sebastien Bourdeauducq 2023-07-07 17:29:24 +08:00
parent e2c2dbbeeb
commit 257c2dc432
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ let
DBDUMPDIR=`mktemp -d`
pushd $DBDUMPDIR
${config.services.mysql.package}/bin/mysqldump --single-transaction flarum > flarum.sql
${config.services.mysql.package}/bin/mysqldump --user=root --single-transaction flarum > flarum.sql
${pkgs.sudo}/bin/sudo -u mattermost ${config.services.postgresql.package}/bin/pg_dump mattermost > mattermost.sql
${pkgs.sudo}/bin/sudo -u rt ${config.services.postgresql.package}/bin/pg_dump rt5 > rt.sql