SinusBot / installer-linux

💾 SinusBot Installer for Debian, Ubuntu and CentOS - Installs the SinusBot with a single command.
https://sinusbot.github.io/installer/
Other
35 stars 34 forks source link

Remove virt-what #48

Closed mxschmitt closed 6 years ago

mxschmitt commented 6 years ago

Remove the unnecessary dependency virt-what and use other methods to detect openvz and docker.

mxschmitt commented 6 years ago

Use:

if [ -f "${root}/.dockerinit" ]; then
    echo docker
fi

to detect docker and:

if [ -d "${root}/proc/vz" -a ! -d "${root}/proc/bc" ]; then
    echo openvz
fi

to detect openvz. (Extracted from the virt-what source code.