Skip to content

Commit

Permalink
Better prompt and optional bash_history for seedbox
Browse files Browse the repository at this point in the history
  • Loading branch information
gandazgul committed Sep 30, 2018
1 parent 30bb0d8 commit c96d17e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# docker
docker/sshd/users.conf
docker/size-checker/ssmtp.conf
docker/openvpn-transmission-flexget/bash_history

# helmfile values
helmfile.d/70-cronjobs.carlos.yaml
Expand Down
3 changes: 3 additions & 0 deletions docker/openvpn-transmission-flexget/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ RUN apk update \
&& groupmod -g 1000 users \
&& usermod -G users abc

COPY ./bashrc /root/.bashrc
COPY ./bash_history* /root/.bash_history

RUN pip install -U pip \
# Make sure to install setuptools version >=36 to avoid a race condition, see:
# https://github.com/pypa/setuptools/issues/951
Expand Down
2 changes: 2 additions & 0 deletions docker/openvpn-transmission-flexget/bashrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
alias ll='ls -laH'
PS1='\n$(if [[ $? == 0 ]]; then echo "\[\e[32m\]\u"; else echo "\[\e[31m\]\u"; fi) \[\e[36m\w\] \[\e[33m\]\[\e[1m\]\n\$ \[\e[0m\]'
2 changes: 1 addition & 1 deletion helmfile.d/40-seedbox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ releases:
chart: ../charts/seedbox
values:
- image:
tag: v18
tag: v21
- env:
- name: LOCAL_NETWORK
value: "10.244.0.0/16"
Expand Down

0 comments on commit c96d17e

Please sign in to comment.