Unverified Commit 43bce99d authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

nixos/mongodb: fix initialScript when dbpath exists and is empty (#443005)

parents 569a3725 51c31441
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -164,6 +164,8 @@ in
          rm ${cfg.dbpath}/mongod.lock || true
          if ! test -e ${cfg.dbpath}; then
              install -d -m0700 -o ${cfg.user} ${cfg.dbpath}
          fi
          if ! test -e ${cfg.dbpath}/storage.bson; then
              # See postStart!
              touch ${cfg.dbpath}/.first_startup
          fi