Unverified Commit e736e256 authored by Paul Haerle's avatar Paul Haerle Committed by GitHub
Browse files

nixos/grocy: enforce data directory presence (#500821)

parents 9e901566 10183441
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -216,6 +216,7 @@ in
    systemd.services.grocy-setup = {
      wantedBy = [ "multi-user.target" ];
      before = [ "phpfpm-grocy.service" ];
      unitConfig.RequiresMountsFor = [ cfg.dataDir ];
      script = ''
        rm -rf ${cfg.dataDir}/viewcache/*
      '';