mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 13:11:31 +00:00
Improve handling of bash history
This commit is contained in:
parent
82073fda8c
commit
ac8e5506a5
@ -62,7 +62,12 @@ ENV PYTHONPATH="/usr/local/lib/" \
|
|||||||
TFW_TERMINADO_DIR="/tmp/terminado_server" \
|
TFW_TERMINADO_DIR="/tmp/terminado_server" \
|
||||||
TFW_FRONTEND_DIR="/srv/frontend" \
|
TFW_FRONTEND_DIR="/srv/frontend" \
|
||||||
TFW_HISTFILE="/home/${AVATAO_USER}/.bash_history" \
|
TFW_HISTFILE="/home/${AVATAO_USER}/.bash_history" \
|
||||||
PROMPT_COMMAND="history -a"
|
PROMPT_COMMAND="history -a" \
|
||||||
|
HISTFILESIZE=1000 \
|
||||||
|
HISTSIZE=1000
|
||||||
|
|
||||||
|
RUN sudo -u ${AVATAO_USER} bash -c 'shopt -s cmdhist' &&\
|
||||||
|
sudo -u ${AVATAO_USER} bash -c 'shopt -s histappend'
|
||||||
|
|
||||||
COPY nginx/nginx.conf ${TFW_NGINX_CONF}
|
COPY nginx/nginx.conf ${TFW_NGINX_CONF}
|
||||||
COPY nginx/components/ ${TFW_NGINX_COMPONENTS}
|
COPY nginx/components/ ${TFW_NGINX_COMPONENTS}
|
||||||
|
Loading…
Reference in New Issue
Block a user