Fix sudo setup for containers with broken lists
This commit is contained in:
parent
bbc65d999a
commit
dd0115673c
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
add_sudo() {
|
add_sudo() {
|
||||||
if ! command -v sudo >/dev/null; then
|
if ! command -v sudo >/dev/null; then
|
||||||
check_package sudo || apt-get update
|
check_package sudo || apt-get update
|
||||||
apt-get install -y sudo
|
apt-get install -y sudo || (apt-get update && apt-get install -y sudo)
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue