Allow running as root inside a Docker container.

This commit is contained in:
Hameer Abbasi
2023-08-06 11:19:55 +00:00
parent 7a131296b2
commit 764c15aa9f
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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
+1 -1
Submodule wiki updated: 35142f02ae...f76cc3a9ac