summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2021-10-24 18:27:58 +0200
committerlassulus <lassulus@lassul.us>2021-10-24 18:27:58 +0200
commit6e61a2d9fca6cf8d13f5e9be9345dfe861b9022e (patch)
treeeffd14f2ddd11b57e075c41e4b0c6219ee7c23a7
parent4fa8f74fc049e6856cb0f9cedbba3ca26ca1e695 (diff)
sync-containers module: make chmod failsafe
-rw-r--r--krebs/3modules/sync-containers.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/krebs/3modules/sync-containers.nix b/krebs/3modules/sync-containers.nix
index fcfaf1dd0..e47f9a3a7 100644
--- a/krebs/3modules/sync-containers.nix
+++ b/krebs/3modules/sync-containers.nix
@@ -94,7 +94,7 @@ in {
programs.fuse.userAllowOther = true;
# allow syncthing to enter /var/lib/containers
system.activationScripts.containers-enter = mkDefault ''
- ${pkgs.coreutils}/bin/chmod a+x /var/lib/containers
+ ${pkgs.coreutils}/bin/chmod a+x /var/lib/containers || :
'';
services.syncthing.declarative.folders = (mapAttrs' (_: ctr: nameValuePair "${(paths ctr.name).${ctr.format}}" ({