mirror of
https://github.com/openlibrecommunity/olcrtc.git
synced 2026-05-30 00:49:44 +00:00
chore(script): improve podman installation privilege escalation
This commit is contained in:
@@ -19,8 +19,13 @@ if ! command -v podman &> /dev/null; then
|
||||
|
||||
if [ "$(id -u)" -eq 0 ]; then
|
||||
SUDO=""
|
||||
else
|
||||
elif command -v sudo &> /dev/null; then
|
||||
SUDO="sudo"
|
||||
elif command -v doas &> /dev/null; then
|
||||
SUDO="doas"
|
||||
else
|
||||
echo "[X] No sudo/doas found and not running as root. Cannot install podman."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if command -v apt &> /dev/null; then
|
||||
|
||||
Reference in New Issue
Block a user