deason 6 anos atrás
pai
commit
685d337c9d

+ 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