Some systems might contain doas instead of sudo, e.g. Alpine or Gentoo. Or they can contain only root user, since the environment is either isolated or secured otherwise. This commit adds preflight checks and generalizes further steps. TODO: distro parsing, init-system detection, check if user is present in docker group, refactor excessive IF usage.
Some systems might contain doas instead of sudo, e.g. Alpine or Gentoo. Or they can contain only root user, since the environment is either isolated or secured otherwise. This commit adds preflight checks and generalizes further steps. TODO: distro parsing, init-system detection, check if user is present in docker group, refactor excessive IF usage.