Check for sbin in $PATH
This commit is contained in:
parent
55bdb64030
commit
8b0b1a086b
1 changed files with 7 additions and 0 deletions
|
@ -60,6 +60,13 @@ This version of CentOS is too old and unsupported"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Detect environments where $PATH does not include the sbin directories
|
||||||
|
if ! grep -q sbin <<< $PATH; then
|
||||||
|
echo '$PATH does not include sbin
|
||||||
|
Try using "su -" instead of "su"'
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
systemd-detect-virt -cq
|
systemd-detect-virt -cq
|
||||||
is_container="$?"
|
is_container="$?"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue