anchor.diff:                  if ! kill -0 "$MAINPID"; then exit 1; fi
                   sleep 0.1
               done
  +
  +            if test -e "${cfg.dataDir}/.first_startup"; then
  +              ${optionalString (cfg.initialScript != null) ''
  +                cat "${cfg.initialScript}" | psql postgres
  +              ''}
  +              rm -f "${cfg.dataDir}/.first_startup"
  +            fi
             '';
   
           unitConfig.RequiresMountsFor = "${cfg.dataDir}";
  
positive.code:         '';
        };
  
        authMethod = mkOption {
          default = " ident sameuser ";
          description = ''
  
negative.code:                 chown -R postgres ${cfg.dataDir}
                  su -s ${pkgs.stdenv.shell} postgres -c 'initdb -U root'
                  rm -f ${cfg.dataDir}/*.conf
                  touch "${cfg.dataDir}/.first_startup"
              fi
  
              ln -sfn ${configFile} ${cfg.dataDir}/postgresql.conf
  