budibase/packages/worker/scripts/multiTenancy.js

9 lines
212 B
JavaScript
Raw Normal View History

#!/usr/bin/env node
const updateDotEnv = require("update-dotenv")
const arg = process.argv.slice(2)[0]
updateDotEnv({
MULTI_TENANCY: arg === "enable" ? "1" : "",
}).then(() => console.log("Updated worker!"))