diff options
Diffstat (limited to 'system/edit-config')
-rwxr-xr-x | system/edit-config | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/system/edit-config b/system/edit-config index 74f3634c..3944810d 100755 --- a/system/edit-config +++ b/system/edit-config @@ -112,8 +112,10 @@ check_editor() { running_in_container() { [ -e /.dockerenv ] && return 0 [ -e /.dockerinit ] && return 0 - [ -r /proc/1/environ ] && tr '\000' '\n' </proc/1/environ | grep -Eiq '^container=podman' && return 0 + [ -e /run/.containerenv ] && return 0 + [ -r /proc/1/environ ] && tr '\000' '\n' </proc/1/environ | grep -Eiq 'container=' && return 0 grep -qF -e /docker/ -e /libpod- /proc/self/cgroup 2>/dev/null && return 0 + return 1 } get_docker_command() { |