From e064c34d8f46a91fdb76c2207671c3af68646008 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Wed, 7 Mar 2018 11:34:21 +0100 Subject: [PATCH] Enforce HISTFILE consistency --- Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 00edd03..cd0ce9f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -64,12 +64,13 @@ ENV PYTHONPATH="/usr/local/lib/" \ TFW_HISTFILE="/home/${AVATAO_USER}/.bash_history" \ PROMPT_COMMAND="history -a" -RUN echo "shopt -s cmdhist\n" \ - "shopt -s histappend\n" \ - "unset HISTCONTROL\n" \ - "export HISTFILESIZE=1000\n" \ - "export HISTSIZE=1000\n" \ - 'PROMPT_COMMAND="history -a"\n' \ +RUN echo "shopt -s cmdhist\n" \ + "shopt -s histappend\n" \ + "unset HISTCONTROL\n" \ + "export HISTFILE=$TFW_HISTFILE\n" \ + "export HISTFILESIZE=1000\n" \ + "export HISTSIZE=1000\n" \ + 'PROMPT_COMMAND="history -a"\n' \ >> /home/${AVATAO_USER}/.bashrc COPY nginx/nginx.conf ${TFW_NGINX_CONF}