mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 03:45:59 +00:00
isGeneratedScript TODO
This commit is contained in:
@@ -148,8 +148,8 @@ module.exports = {
|
||||
},
|
||||
|
||||
start_meta: true,
|
||||
async start({ script }) {
|
||||
if (process.env.DISABLE_SHELL) {
|
||||
async start({ script, isGeneratedScript }) {
|
||||
if (!isGeneratedScript && process.env.DISABLE_SHELL) {
|
||||
return { errorMessage: 'Shell is disabled' };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user