From c175dc402e60fb08506ce2ca1742af6647343282 Mon Sep 17 00:00:00 2001 From: Kroese Date: Thu, 20 Mar 2025 03:01:48 +0100 Subject: [PATCH] Update network.sh --- src/network.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/network.sh b/src/network.sh index 2ce396c..e8a904f 100644 --- a/src/network.sh +++ b/src/network.sh @@ -495,7 +495,14 @@ else closeBridge NETWORK="user" - warn "falling back to user-mode networking! Performance will be bad and port mapping will not work." + msg="falling back to user-mode networking!" + if [ ! - f "/run/.containerenv" ]; then + msg="an error occured, $msg" + else + msg="podman rootless mode detected, $msg" + fi + warn "$msg" + [ -z "$USER_PORTS" ] && info "Notice: port mapping will not work without \"USER_PORTS\" now." fi