This reverts commit d67b37e48e
.
This commit is contained in:
parent
8236528a07
commit
1b39986bf9
1 changed files with 5 additions and 7 deletions
12
start.js
12
start.js
|
@ -8,7 +8,7 @@ const decompress = require("decompress");
|
||||||
const decompressTargz = require("decompress-targz");
|
const decompressTargz = require("decompress-targz");
|
||||||
|
|
||||||
const args = process.argv.slice(2);
|
const args = process.argv.slice(2);
|
||||||
const version = args[0] || "14.0.0";
|
const version = args[0] || "12.0.1";
|
||||||
|
|
||||||
const folder = "server";
|
const folder = "server";
|
||||||
const fileName = path.join(folder, `keycloak-${version}.tar.gz`);
|
const fileName = path.join(folder, `keycloak-${version}.tar.gz`);
|
||||||
|
@ -27,16 +27,14 @@ const decompressKeycloak = () =>
|
||||||
console.log("Files decompressed");
|
console.log("Files decompressed");
|
||||||
})
|
})
|
||||||
.catch((e) => console.error(e));
|
.catch((e) => console.error(e));
|
||||||
|
|
||||||
const run = () => {
|
const run = () => {
|
||||||
const addProc = spawn(
|
const addProc = spawn(path.join(serverPath, "bin", `add-user-keycloak${extension}`), [
|
||||||
path.join(serverPath, "bin", `add-user-keycloak${extension}`),
|
"--user", "admin",
|
||||||
["--user", "admin", "--password", "admin"]
|
"--password", "admin"
|
||||||
);
|
]);
|
||||||
addProc.on("exit", () => {
|
addProc.on("exit", () => {
|
||||||
const proc = spawn(path.join(serverPath, "bin", `standalone${extension}`), [
|
const proc = spawn(path.join(serverPath, "bin", `standalone${extension}`), [
|
||||||
"-Djboss.socket.binding.port-offset=100",
|
"-Djboss.socket.binding.port-offset=100",
|
||||||
"-Dprofile.feature.newadmin=enabled",
|
|
||||||
]);
|
]);
|
||||||
proc.stdout.on("data", (data) => {
|
proc.stdout.on("data", (data) => {
|
||||||
console.log(data.toString());
|
console.log(data.toString());
|
||||||
|
|
Loading…
Reference in a new issue