From d2a2ddfbda4206025dfa8fcda5f5b1c5a81859df Mon Sep 17 00:00:00 2001 From: choibk Date: Sun, 25 Jan 2026 02:07:01 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95:=20?= =?UTF-8?q?=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8=20=EC=84=9C=EB=B2=84=20?= =?UTF-8?q?=EC=B0=B8=EC=A1=B0=20=EC=98=A4=EB=A5=98(ReferenceError)=20?= =?UTF-8?q?=ED=95=B4=EA=B2=B0=20=EB=B0=8F=20=EC=8A=A4=ED=81=AC=EB=A6=BD?= =?UTF-8?q?=ED=8A=B8=20=EC=8B=A4=ED=96=89=EB=A0=A5=20=EB=B3=B5=EA=B5=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/routes/system.js | 2 ++ 1 file changed, 2 insertions(+) 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