mirror of
https://github.com/9technologygroup/patchmon.net.git
synced 2025-11-05 22:43:23 +00:00
Fix script path in hostRoutes to correct installation script location. **Might break non docker installs?**
This commit is contained in:
@@ -823,8 +823,8 @@ router.get('/install', async (req, res) => {
|
|||||||
try {
|
try {
|
||||||
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' });
|
||||||
|
|||||||
Reference in New Issue
Block a user