diff --git a/docker/docker-entrypoint.js b/docker/docker-entrypoint.js index f5fcecf..b4bfc60 100644 --- a/docker/docker-entrypoint.js +++ b/docker/docker-entrypoint.js @@ -1,7 +1,7 @@ #!/usr/bin/env node -const { existsSync, unlinkSync } = require("fs"); +const { existsSync, unlinkSync, writeFileSync } = require("fs"); -if (existsSync("./data/users")) { +if (existsSync("../conf/install.ed")) { console.log("Docker Env already configured."); require("../lib/main.js"); } else { @@ -54,6 +54,7 @@ if (existsSync("./data/users")) { storage.shutdown(function () { console.log("Docker Env Fixed."); require("../lib/main.js"); + writeFileSync("../conf/install.ed", ""); }); }); });