mirror of
https://github.com/linuxserver/docker-webtop.git
synced 2025-07-20 20:25:23 +02:00
disable GPU in RPM distros on cpu only
This commit is contained in:
parent
16ae035a9f
commit
bdc765f931
@ -7,9 +7,16 @@ if ! pgrep chromium > /dev/null;then
|
|||||||
rm -f $HOME/.config/chromium/Singleton*
|
rm -f $HOME/.config/chromium/Singleton*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Run normally on privved containers or modified un non priv
|
# Disable GPU without Nvidia
|
||||||
if grep -q 'Seccomp:.0' /proc/1/status; then
|
if which nvidia-smi; then
|
||||||
${BIN} --password-store=basic "$@"
|
DISABLE_GPU=""
|
||||||
else
|
else
|
||||||
${BIN} --password-store=basic --no-sandbox --test-type "$@"
|
DISABLE_GPU="--disable-gpu"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Run normally on privved containers or modified un non priv
|
||||||
|
if grep -q 'Seccomp:.0' /proc/1/status; then
|
||||||
|
${BIN} --password-store=basic ${DISABLE_GPU} "$@"
|
||||||
|
else
|
||||||
|
${BIN} --password-store=basic ${DISABLE_GPU} --no-sandbox --test-type "$@"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user