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:
parent
00668de9f1
commit
43b3ccc620
|
@ -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 ''
|
||||
|
|
|
@ -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 ''
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue