Commit 94fe0c77 authored by Vitaly Lipatov's avatar Vitaly Lipatov

commit packed 3.64.14

parent adc79b30
...@@ -34,7 +34,7 @@ SHAREDIR=$PROGDIR ...@@ -34,7 +34,7 @@ SHAREDIR=$PROGDIR
# will replaced with /etc/eepm during install # will replaced with /etc/eepm during install
CONFIGDIR=$PROGDIR/../etc CONFIGDIR=$PROGDIR/../etc
EPMVERSION="3.64.13" EPMVERSION="3.64.14"
# package, single (file), pipe, git # package, single (file), pipe, git
EPMMODE="package" EPMMODE="package"
...@@ -2737,6 +2737,16 @@ get_virt() ...@@ -2737,6 +2737,16 @@ get_virt()
echo "$VIRT" && return echo "$VIRT" && return
fi fi
if [ "$UID" = 0 ] ; then
if grep -q "docker" /proc/1/environ; then
echo "docker" && return
elif grep -q "lxc" /proc/1/environ; then
echo "lxc" && return
elif grep -q "libpod" /proc/1/environ; then
echo "podman" && return
fi
fi
# TODO: use virt-what under root # TODO: use virt-what under root
# inspired by virt_what # inspired by virt_what
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment