[server-ce] fix direct invocation of create-user.mjs script in web (#26152)

GitOrigin-RevId: 9c7917e489dc8f3651f4ccf88a740ad60b6b4437
This commit is contained in:
Jakob Ackermann
2025-06-04 17:33:05 +02:00
committed by Copybot
parent 1986941b98
commit 109c2e1bc1
2 changed files with 18 additions and 0 deletions
@@ -48,3 +48,13 @@ Please visit the following URL to set a password for ${email} and log in:
)
})
}
if (filename === process.argv[1]) {
try {
await main()
process.exit(0)
} catch (error) {
console.error({ error })
process.exit(1)
}
}