git://git.onelab.eu
/
bootmanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This is supported only if there is a receiving server, such as myops, for the
[bootmanager.git]
/
source
/
setup_bash_history_scripts.sh
diff --git
a/source/setup_bash_history_scripts.sh
b/source/setup_bash_history_scripts.sh
index
cf697ec
..
6298d16
100644
(file)
--- 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.
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.
# 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 ))
# same time.
initial_delay=$(( $RANDOM * 3 ))
-
cat <<EOF > $PERIODIC_SCRIPT
#!/bin/bash
if [ -f $BASH_PROFILE ] ; then
cat <<EOF > $PERIODIC_SCRIPT
#!/bin/bash
if [ -f $BASH_PROFILE ] ; then