forked from unimatrix/web
Fresh production baseline [skip ci]
This commit is contained in:
commit
0a11a18274
1 changed files with 229644 additions and 0 deletions
1
website/node/initial-agent-sync.mjs
Normal file
1
website/node/initial-agent-sync.mjs
Normal file
|
|
@ -0,0 +1 @@
|
|||
import {readFileSync} from 'node:fs';import{openDatabase}from './mysql.mjs';import{syncNativeAgents}from './native-agents.mjs';const c=JSON.parse(readFileSync('/home/dunerealms/.config/integrations.json'));const db=await openDatabase({DB_HOST:c.host,DB_USER:c.username,DB_PASSWORD:c.password,DB_NAME:c.database});try{await syncNativeAgents(db);console.log('Initial agent sync complete');}finally{await db.close();}
|
||||
Loading…
Reference in a new issue

Staff