Skip to content

Commit

Permalink
Set PS1 env
Browse files Browse the repository at this point in the history
  • Loading branch information
liqiang-fit2cloud committed Apr 3, 2020
1 parent 0167ab3 commit da5dd24
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions init-kubectl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ mount -t tmpfs -o size=${SESSION_STORAGE_SIZE} tmpfs /nonexistent
cd /nonexistent
cp /root/.bashrc ./
echo 'source /opt/kubectl-aliases/.kubectl_aliases' >> .bashrc
echo 'PS1="> "' >> .bashrc
mkdir -p .kube

export HOME=/nonexistent
Expand Down Expand Up @@ -45,6 +46,4 @@ chown -R nobody:nogroup .kube

export TMPDIR=/nonexistent

export PS1=">"

exec su -s /bin/bash nobody

0 comments on commit da5dd24

Please sign in to comment.