This is supported only if there is a receiving server, such as myops, for the
[bootmanager.git] / source / setup_bash_history_scripts.sh
index cf697ec..6298d16 100644 (file)
@@ -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 <<EOF > $PERIODIC_SCRIPT
 #!/bin/bash
 if [ -f $BASH_PROFILE ] ; then