From a53143c0d018217b62b92b2b6a8418b8271469af Mon Sep 17 00:00:00 2001 From: sneak Date: Sat, 11 Apr 2020 12:50:52 -0700 Subject: [PATCH] fix --- Makefile | 2 +- build/run.sh | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cb78d6a..7df6b70 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -default: build +.PHONY: build build: sudo docker build . 2>&1 | tee -a build.log diff --git a/build/run.sh b/build/run.sh index 775aca8..ff98cb4 100644 --- a/build/run.sh +++ b/build/run.sh @@ -34,4 +34,9 @@ pip3 install black # install prettier # install vim-go -sudo -u $USERNAME_TO_ADD bash ./runuser.sh +sudo \ + --preserve-env=USERNAME_TO_ADD \ + --set-home \ + --non-interactive \ + -u $USERNAME_TO_ADD \ + bash ./runuser.sh