eve-lite-os/system_files/usr/bin/dnf

9 lines
311 B
Bash
Executable file

#!/usr/bin/bash
# Redirect to dnf5 if we are running inside a container
if systemd-detect-virt -cq || { [[ -e /run/.containerenv || -e /.dockerenv ]]; }; then
exec dnf5 "$@"
fi
echo -e "Looks like you are trying to use DNF on EveOS, please read our documentation here\nhttps://arx-ccn.com/eveos/dnf"
exit 1