mbsync: skip maildir creation if no account is defined

Fixes #937
This commit is contained in:
Robert Helgesson 2019-12-08 21:46:30 +01:00
parent bcfc52cb85
commit 621c98f15a
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -178,11 +178,13 @@ in
++ groupsConfig ++ groupsConfig
) + "\n"; ) + "\n";
home.activation.createMaildir = home.activation = mkIf (mbsyncAccounts != []) {
dag.entryBetween [ "linkGeneration" ] [ "writeBoundary" ] '' createMaildir =
$DRY_RUN_CMD mkdir -m700 -p $VERBOSE_ARG ${ dag.entryBetween [ "linkGeneration" ] [ "writeBoundary" ] ''
concatMapStringsSep " " (a: a.maildir.absPath) mbsyncAccounts $DRY_RUN_CMD mkdir -m700 -p $VERBOSE_ARG ${
} concatMapStringsSep " " (a: a.maildir.absPath) mbsyncAccounts
''; }
'';
};
}; };
} }