nixos/changedetection-io: fix creation of data dir (#318666)

authored by Sandro and committed by GitHub 1556ad26 119988cc

+1 -4
+1 -4
nixos/modules/services/web-apps/changedetection-io.nix
··· 129 services.changedetection-io = { 130 wantedBy = [ "multi-user.target" ]; 131 after = [ "network.target" ]; 132 - preStart = '' 133 - mkdir -p ${cfg.datastorePath} 134 - ''; 135 serviceConfig = { 136 User = cfg.user; 137 Group = cfg.group; ··· 153 Restart = "on-failure"; 154 }; 155 }; 156 - tmpfiles.rules = mkIf defaultStateDir [ 157 "d ${cfg.datastorePath} 0750 ${cfg.user} ${cfg.group} - -" 158 ]; 159 };
··· 129 services.changedetection-io = { 130 wantedBy = [ "multi-user.target" ]; 131 after = [ "network.target" ]; 132 serviceConfig = { 133 User = cfg.user; 134 Group = cfg.group; ··· 150 Restart = "on-failure"; 151 }; 152 }; 153 + tmpfiles.rules = mkIf (!defaultStateDir) [ 154 "d ${cfg.datastorePath} 0750 ${cfg.user} ${cfg.group} - -" 155 ]; 156 };