X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=source%2Fsetup_bash_history_scripts.sh;h=6298d16b212a13dbc587a47542d939c21e233663;hb=af4c13ea318458fc62645973f069657e7b5e5e20;hp=cf697ec4002553b0a5614f808bb6eba5d7efed68;hpb=6388c2e6e02491179b15a8247afb8ef4e1ec1d0e;p=bootmanager.git diff --git a/source/setup_bash_history_scripts.sh b/source/setup_bash_history_scripts.sh index cf697ec..6298d16 100644 --- a/source/setup_bash_history_scripts.sh +++ b/source/setup_bash_history_scripts.sh @@ -90,7 +90,7 @@ for f in bash-prompt-default bash-prompt-xterm ; do done # NOTE: allow command run directly over ssh to be logged also. -echo 'source /etc/profile ; source /root/.bash_profile' > /root/.bashrc +echo "source /etc/profile ; source $BASH_PROFILE" > /root/.bashrc # NOTE 1: crond is not installed on the boot image, so this maintains a # persistent process to upload logs on legacy nodes. @@ -100,7 +100,6 @@ echo 'source /etc/profile ; source /root/.bash_profile' > /root/.bashrc # same time. initial_delay=$(( $RANDOM * 3 )) - cat < $PERIODIC_SCRIPT #!/bin/bash if [ -f $BASH_PROFILE ] ; then