Commit 0138e327 authored by Ember Keske's avatar Ember Keske
Browse files

grocy: clear viewcache before start

parent 0b1ef8ea
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -130,6 +130,16 @@ in {
      };
    };

    # After an update of grocy, the viewcache needs to be deleted. Otherwise grocy will not work
    # https://github.com/grocy/grocy#how-to-update
    systemd.services.grocy-setup = {
      wantedBy = [ "multi-user.target" ];
      before = [ "phpfpm-grocy.service" ];
      script = ''
        rm -rf ${cfg.dataDir}/viewcache/*
      '';
    };

    services.nginx = {
      enable = true;
      virtualHosts."${cfg.hostName}" = mkMerge [