From 81e37d8475465c77c67d22306b80be779bcfb527 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Thu, 8 Oct 2009 09:29:16 +0000 Subject: [PATCH] added deps for activation scripts of backup modules svn path=/nixos/trunk/; revision=17714 --- modules/services/backup/mysql-backup.nix | 4 ++-- modules/services/backup/postgresql-backup.nix | 4 ++-- modules/services/backup/sitecopy-backup.nix | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/services/backup/mysql-backup.nix b/modules/services/backup/mysql-backup.nix index 51c998a9b09f..adb9f1d74f82 100644 --- a/modules/services/backup/mysql-backup.nix +++ b/modules/services/backup/mysql-backup.nix @@ -55,10 +55,10 @@ in systemCronJobs = map mysqlBackupCron config.services.mysqlBackup.databases; }; - system.activationScripts.mysqlBackup = pkgs.stringsWithDeps.noDepEntry '' + system.activationScripts.mysqlBackup = pkgs.stringsWithDeps.fullDepEntry '' mkdir -m 0700 -p ${config.services.mysqlBackup.location} chown mysql ${config.services.mysqlBackup.location} - ''; + '' [ "stdio" "defaultPath" "systemConfig" "users" ]; }; } diff --git a/modules/services/backup/postgresql-backup.nix b/modules/services/backup/postgresql-backup.nix index 630b01efe0e0..61bafed7bfa4 100644 --- a/modules/services/backup/postgresql-backup.nix +++ b/modules/services/backup/postgresql-backup.nix @@ -56,10 +56,10 @@ in systemCronJobs = map postgresqlBackupCron config.services.postgresqlBackup.databases; }; - system.activationScripts.postgresqlBackup = pkgs.stringsWithDeps.noDepEntry '' + system.activationScripts.postgresqlBackup = pkgs.stringsWithDeps.fullDepEntry '' mkdir -m 0700 -p ${config.services.postgresqlBackup.location} chown root ${config.services.postgresqlBackup.location} - ''; + '' [ "stdio" "defaultPath" "systemConfig" "users" ]; }; } diff --git a/modules/services/backup/sitecopy-backup.nix b/modules/services/backup/sitecopy-backup.nix index 2966013e947b..81f124ecc63c 100644 --- a/modules/services/backup/sitecopy-backup.nix +++ b/modules/services/backup/sitecopy-backup.nix @@ -68,7 +68,7 @@ in system.activationScripts.sitecopyBackup = - pkgs.stringsWithDeps.noDepEntry '' + pkgs.stringsWithDeps.fullDepEntry '' mkdir -m 0700 -p ${stateDir} chown root ${stateDir} touch ${stateDir}/sitecopy.secrets @@ -99,7 +99,7 @@ in '' ) config.services.sitecopy.backups )} - ''; + '' [ "stdio" "defaultPath" "systemConfig" "users" ] ; }; }