set up working user
This commit is contained in:
parent
c7f2b8e9d2
commit
b8d90f2f8f
6
run.sh
6
run.sh
@ -1,6 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
USERNAME="sneak"
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
set -e
|
set -e
|
||||||
exec 1> >(tee -a /var/log/sandboxbuild.log) 2>&1
|
exec 1> >(tee -a /var/log/sandboxbuild.log) 2>&1
|
||||||
@ -207,3 +209,7 @@ PIP_PKGS="
|
|||||||
for PKG in $PIP_PKGS; do
|
for PKG in $PIP_PKGS; do
|
||||||
pip3 install $PKG
|
pip3 install $PKG
|
||||||
done
|
done
|
||||||
|
|
||||||
|
groupadd -g 1000 $USERNAME
|
||||||
|
useradd -u 1000 -g 1000 -s /bin/bash $USERNAME
|
||||||
|
usermod -p '*' $USERNAME
|
||||||
|
Loading…
Reference in New Issue
Block a user