From 764c15aa9f5de66237d5ef3aefda2a15557d2cdf Mon Sep 17 00:00:00 2001 From: Hameer Abbasi Date: Sun, 6 Aug 2023 11:19:55 +0000 Subject: [PATCH] Allow running as root inside a Docker container. --- webui.sh | 4 ++-- wiki | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/webui.sh b/webui.sh index 2800b2d3d..7f339f585 100755 --- a/webui.sh +++ b/webui.sh @@ -44,8 +44,8 @@ do esac done -# Do not run as root -if [[ $(id -u) -eq 0 && can_run_as_root -eq 0 ]] +# Do not run as root unless inside a Docker container +if [[ $(id -u) -eq 0 && can_run_as_root -eq 0 && ! -f /.dockerenv ]] then echo "Cannot run as root" exit 1 diff --git a/wiki b/wiki index 35142f02a..f76cc3a9a 160000 --- a/wiki +++ b/wiki @@ -1 +1 @@ -Subproject commit 35142f02aee984aac261d1e1f563768d008398f6 +Subproject commit f76cc3a9ac124882f58f35ba3dfe930744109456