Fix script path in hostRoutes to correct installation script location. **Might break non docker installs?**

This commit is contained in:
AdamT20054
2025-09-21 07:35:10 +01:00
parent b2d3181ffe
commit d2bf201f1e

View File

@@ -824,7 +824,7 @@ router.get('/install', async (req, res) => {
const fs = require('fs'); const fs = require('fs');
const path = require('path'); 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)) { if (!fs.existsSync(scriptPath)) {
return res.status(404).json({ error: 'Installation script not found' }); return res.status(404).json({ error: 'Installation script not found' });