diff options
Diffstat (limited to 'modules/private/databases/mariadb_replication.nix')
-rw-r--r-- | modules/private/databases/mariadb_replication.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/private/databases/mariadb_replication.nix b/modules/private/databases/mariadb_replication.nix index b89c764..e857c41 100644 --- a/modules/private/databases/mariadb_replication.nix +++ b/modules/private/databases/mariadb_replication.nix | |||
@@ -140,7 +140,7 @@ in | |||
140 | 140 | ||
141 | filename=${backupDir}/$(${pkgs.coreutils}/bin/date -Iminutes).sql | 141 | filename=${backupDir}/$(${pkgs.coreutils}/bin/date -Iminutes).sql |
142 | ${hcfg.package}/bin/mysqldump \ | 142 | ${hcfg.package}/bin/mysqldump \ |
143 | --defaults-file=${config.secrets.location}/mysql_replication/${name}/mysqldump \ | 143 | --defaults-file=${config.secrets.fullPaths."mysql_replication/${name}/mysqldump"} \ |
144 | -S /run/mysqld_${name}/mysqld.sock \ | 144 | -S /run/mysqld_${name}/mysqld.sock \ |
145 | --gtid \ | 145 | --gtid \ |
146 | --master-data \ | 146 | --master-data \ |
@@ -194,7 +194,7 @@ in | |||
194 | if ! test -e ${dataDir}/mysql; then | 194 | if ! test -e ${dataDir}/mysql; then |
195 | if ! test -e ${dataDir}/initial.sql; then | 195 | if ! test -e ${dataDir}/initial.sql; then |
196 | ${hcfg.package}/bin/mysqldump \ | 196 | ${hcfg.package}/bin/mysqldump \ |
197 | --defaults-file=${config.secrets.location}/mysql_replication/${name}/mysqldump_remote \ | 197 | --defaults-file=${config.secrets.fullPaths."mysql_replication/${name}/mysqldump_remote"} \ |
198 | -h ${hcfg.host} \ | 198 | -h ${hcfg.host} \ |
199 | -P ${hcfg.port} \ | 199 | -P ${hcfg.port} \ |
200 | --ssl \ | 200 | --ssl \ |
@@ -235,7 +235,7 @@ in | |||
235 | cat \ | 235 | cat \ |
236 | ${sql_before} \ | 236 | ${sql_before} \ |
237 | ${dataDir}/initial.sql \ | 237 | ${dataDir}/initial.sql \ |
238 | ${config.secrets.location}/mysql_replication/${name}/slave_init_commands \ | 238 | ${config.secrets.fullPaths."mysql_replication/${name}/slave_init_commands"} \ |
239 | | ${hcfg.package}/bin/mysql \ | 239 | | ${hcfg.package}/bin/mysql \ |
240 | --defaults-file=/etc/mysql/${name}_my.cnf \ | 240 | --defaults-file=/etc/mysql/${name}_my.cnf \ |
241 | -S /run/mysqld_${name}/mysqld.sock \ | 241 | -S /run/mysqld_${name}/mysqld.sock \ |