Commit 10183441 authored by Nicolas Dumazet's avatar Nicolas Dumazet
Browse files

nixos/grocy: enforce data directory presence

In the case of mounted directories, systemd needs to know that this
script depends on this path to add the adequate dependency.
parent 922114cf
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/*
      '';