dobrograd-13-06-2022/octolib/scripts/generate-lsac.ts
Jonny_Bro (Nikita) e4d5311906 first commit
2023-11-16 15:01:19 +05:00

16 lines
448 B
TypeScript

import fs from 'fs'
import path from 'path'
import config from '../../config'
const envPath = path.resolve(__dirname, '../../garrysmod/addons/util-lsac')
if (fs.existsSync(envPath))
fs.writeFileSync(path.resolve(envPath, 'mysql.txt'), JSON.stringify({
DBIPAddress: config.db.host,
DBPort: config.db.port,
DBUsername: config.db.user,
DBPassword: config.db.pass,
DBSchema: config.db.main,
}))
// allow dynamic imports
export default {}