diff --git a/server/routes/system.js b/server/routes/system.js index 5abe246..a79c90e 100644 --- a/server/routes/system.js +++ b/server/routes/system.js @@ -590,6 +590,8 @@ router.post('/version/update', isAuthenticated, hasRole('admin'), async (req, re authPrefix = `git remote set-url origin ${auth.url} && `; } + const isWindows = process.platform === 'win32'; + // Build a more robust update script // On dev environments, pm2 might fail, so we make it optional (|| echo) const updateScript = isWindows