[core] no xvfb if not installed (noweb/gows image)
This commit is contained in:
1 parent
8a179e7194
commit
469cdc9b1d
1 file changed
+9
-4
+9
-4
@@ -1,9 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Start virtual X server in the background
|
||||
Xvfb :99 -screen 0 1280x720x24 &
|
||||
export DISPLAY=:99
|
||||
sleep 2
|
||||
# Check if Xvfb command exists
|
||||
if command -v Xvfb > /dev/null 2>&1; then
|
||||
# Start virtual X server in the background
|
||||
Xvfb :99 -screen 0 1280x720x24 &
|
||||
export DISPLAY=:99
|
||||
sleep 2
|
||||
else
|
||||
echo "Xvfb command not found, skipping virtual X server setup"
|
||||
fi
|
||||
|
||||
# Calculate UV_THREADPOOL_SIZE based on number of CPUs
|
||||
cpus=$(node -e "const os = require('os'); console.log(os.cpus().length);")
|
||||
|
||||
Reference in new issue
Block a user