Sorted the issue out with installation file not being found upon deployment. Ensured jq dependancy is installing in version 1.2.5 and above of the installation commands

This commit is contained in:
Muhammad Ibrahim
2025-09-22 02:39:22 +01:00
parent 9a01d27d8b
commit 64d9c14002

View File

@@ -937,7 +937,7 @@ router.get('/install', async (req, res) => {
const fs = require('fs');
const path = require('path');
const scriptPath = path.join(__dirname, '../../agents/patchmon_install.sh');
const scriptPath = path.join(__dirname, '../../../agents/patchmon_install.sh');
if (!fs.existsSync(scriptPath)) {
return res.status(404).json({ error: 'Installation script not found' });