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 {
|
config = mkIf config.services.mysqlBackup.enable {
|
||||||
services.cron = {
|
services.cron = {
|
||||||
systemCronJobs =
|
systemCronJobs = map mysqlBackupCron config.services.mysqlBackup.databases;
|
||||||
pkgs.lib.optional
|
|
||||||
config.services.mysqlBackup.enable
|
|
||||||
(concatStrings (map mysqlBackupCron config.services.mysqlBackup.databases));
|
|
||||||
};
|
};
|
||||||
|
|
||||||
system.activationScripts.mysqlBackup = pkgs.stringsWithDeps.noDepEntry ''
|
system.activationScripts.mysqlBackup = pkgs.stringsWithDeps.noDepEntry ''
|
||||||
|
@ -53,10 +53,7 @@ in
|
|||||||
|
|
||||||
config = mkIf config.services.postgresqlBackup.enable {
|
config = mkIf config.services.postgresqlBackup.enable {
|
||||||
services.cron = {
|
services.cron = {
|
||||||
systemCronJobs =
|
systemCronJobs = map postgresqlBackupCron config.services.postgresqlBackup.databases;
|
||||||
pkgs.lib.optional
|
|
||||||
config.services.postgresqlBackup.enable
|
|
||||||
(concatStrings (map postgresqlBackupCron config.services.postgresqlBackup.databases));
|
|
||||||
};
|
};
|
||||||
|
|
||||||
system.activationScripts.postgresqlBackup = pkgs.stringsWithDeps.noDepEntry ''
|
system.activationScripts.postgresqlBackup = pkgs.stringsWithDeps.noDepEntry ''
|
||||||
|
@ -63,7 +63,7 @@ in
|
|||||||
environment.systemPackages = [ sitecopy ];
|
environment.systemPackages = [ sitecopy ];
|
||||||
|
|
||||||
services.cron = {
|
services.cron = {
|
||||||
systemCronJobs = concatStrings (map sitecopyCron config.services.sitecopy.backups);
|
systemCronJobs = map sitecopyCron config.services.sitecopy.backups;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user