From 015234287c6ae21bc9e3cbfd2e25966121268ea1 Mon Sep 17 00:00:00 2001 From: Shane McDonald Date: Fri, 10 May 2019 09:14:59 -0400 Subject: [PATCH] Ensure that a root user is always present in development environment @AlanCoding was seeing errors in the development container when trying to run some commands as root. This fixes that. --- tools/docker-compose/bootstrap_development.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/docker-compose/bootstrap_development.sh b/tools/docker-compose/bootstrap_development.sh index 4ad7572853..93087e3ad9 100755 --- a/tools/docker-compose/bootstrap_development.sh +++ b/tools/docker-compose/bootstrap_development.sh @@ -2,6 +2,7 @@ set +x if [ `id -u` -ge 500 ] || [ -z "${CURRENT_UID}" ]; then + echo "root:x:0:0:root:/root:/bin/bash" > /tmp/password echo "awx:x:`id -u`:`id -g`:,,,:/tmp:/bin/bash" >> /tmp/passwd cat /tmp/passwd > /etc/passwd rm /tmp/passwd