auto execution implemented and fix issue when uninstalling clients and them being shown in the menu when they connect to purgatory
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { AutoScriptTrigger } from "../db";
|
||||
import type { AutoScriptTrigger, AutoDeployTrigger } from "../db";
|
||||
|
||||
export const AUTO_SCRIPT_TRIGGERS = new Set<AutoScriptTrigger>([
|
||||
"on_connect",
|
||||
@@ -6,6 +6,12 @@ export const AUTO_SCRIPT_TRIGGERS = new Set<AutoScriptTrigger>([
|
||||
"on_connect_once",
|
||||
]);
|
||||
|
||||
export const AUTO_DEPLOY_TRIGGERS = new Set<AutoDeployTrigger>([
|
||||
"on_connect",
|
||||
"on_first_connect",
|
||||
"on_connect_once",
|
||||
]);
|
||||
|
||||
export const ALLOWED_SCRIPT_TYPES = new Set([
|
||||
"powershell",
|
||||
"bash",
|
||||
|
||||
Reference in New Issue
Block a user