1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 14:11:36 +00:00

remove unnecessary concatstrings

svn path=/nixos/trunk/; revision=17699
This commit is contained in:
Sander van der Burg 2009-10-07 13:12:45 +00:00
parent 00668de9f1
commit 43b3ccc620
3 changed files with 3 additions and 9 deletions

View file

@ -52,10 +52,7 @@ in
config = mkIf config.services.mysqlBackup.enable {
services.cron = {
systemCronJobs =
pkgs.lib.optional
config.services.mysqlBackup.enable
(concatStrings (map mysqlBackupCron config.services.mysqlBackup.databases));
systemCronJobs = map mysqlBackupCron config.services.mysqlBackup.databases;
};
system.activationScripts.mysqlBackup = pkgs.stringsWithDeps.noDepEntry ''

View file

@ -53,10 +53,7 @@ in
config = mkIf config.services.postgresqlBackup.enable {
services.cron = {
systemCronJobs =
pkgs.lib.optional
config.services.postgresqlBackup.enable
(concatStrings (map postgresqlBackupCron config.services.postgresqlBackup.databases));
systemCronJobs = map postgresqlBackupCron config.services.postgresqlBackup.databases;
};
system.activationScripts.postgresqlBackup = pkgs.stringsWithDeps.noDepEntry ''

View file

@ -63,7 +63,7 @@ in
environment.systemPackages = [ sitecopy ];
services.cron = {
systemCronJobs = concatStrings (map sitecopyCron config.services.sitecopy.backups);
systemCronJobs = map sitecopyCron config.services.sitecopy.backups;
};