set up working user

This commit is contained in:
Jeffrey Paul 2019-08-04 03:12:26 -07:00
parent c7f2b8e9d2
commit b8d90f2f8f
1 changed files with 6 additions and 0 deletions

6
run.sh
View File

@ -1,6 +1,8 @@
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
USERNAME="sneak"
set -x
set -e
exec 1> >(tee -a /var/log/sandboxbuild.log) 2>&1
@ -207,3 +209,7 @@ PIP_PKGS="
for PKG in $PIP_PKGS; do
pip3 install $PKG
done
groupadd -g 1000 $USERNAME
useradd -u 1000 -g 1000 -s /bin/bash $USERNAME
usermod -p '*' $USERNAME