deason 6 년 전
부모
커밋
685d337c9d
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      examcloud-core-print-common/src/main/java/cn/com/qmth/examcloud/core/print/common/utils/ElectronUtils.java

+ 1 - 2
examcloud-core-print-common/src/main/java/cn/com/qmth/examcloud/core/print/common/utils/ElectronUtils.java

@@ -44,8 +44,7 @@ public class ElectronUtils {
         } else {
             String cmd = LINUX_PREFIX + String.format(script, url, path);
             String[] commands = new String[]{
-                    "/bin/bash",
-                    "-c",
+                    "/bin/sh", "-c",
                     "export DISPLAY=':99.0'",
                     "Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &",
                     "cd /usr/local/nodejs/node_global/bin", cmd