Skip to content

Commit 1556ad2

Browse files
nixos/changedetection-io: fix creation of data dir (#318666)
2 parents 119988c + 7f78cd2 commit 1556ad2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

nixos/modules/services/web-apps/changedetection-io.nix

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,6 @@ in
129129
services.changedetection-io = {
130130
wantedBy = [ "multi-user.target" ];
131131
after = [ "network.target" ];
132-
preStart = ''
133-
mkdir -p ${cfg.datastorePath}
134-
'';
135132
serviceConfig = {
136133
User = cfg.user;
137134
Group = cfg.group;
@@ -153,7 +150,7 @@ in
153150
Restart = "on-failure";
154151
};
155152
};
156-
tmpfiles.rules = mkIf defaultStateDir [
153+
tmpfiles.rules = mkIf (!defaultStateDir) [
157154
"d ${cfg.datastorePath} 0750 ${cfg.user} ${cfg.group} - -"
158155
];
159156
};

0 commit comments

Comments
 (0)