anchor.diff:              mkdir -p ${dataDir}/cache/
               chmod 0700 ${dataDir}/cache/
   
  +            chown graphite:graphite ${cfg.dataDir}
  +            chown -R graphite:graphite ${cfg.dataDir}/cache
  +
               touch ${dataDir}/db-created
  -
  -            chown -R graphite:graphite ${cfg.dataDir}
             fi
           '';
         };
  
positive.code:         preStart = ''
            if ! test -e ${dataDir}/db-created; then
              mkdir -p ${dataDir}
              chown -R graphite:graphite ${dataDir}
            fi
          '';
        };
  
negative.code:             # create index
              ${pkgs.python27Packages.graphite_web}/bin/build-index.sh
  
              chown graphite:graphite ${cfg.dataDir}
              chown graphite:graphite ${cfg.dataDir}/whisper
              chown -R graphite:graphite ${cfg.dataDir}/log
  
              touch ${dataDir}/db-created
            fi
          '';
        };
  