mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 16:54:33 +02:00
Allow running as root inside a Docker container.
This commit is contained in:
@@ -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
Reference in New Issue
Block a user