diff options
author | Simon Rettberg | 2014-11-18 14:18:07 +0100 |
---|---|---|
committer | Simon Rettberg | 2014-11-18 14:18:07 +0100 |
commit | 0f3adf1b54a23fdc36e82a8e8ed1ef64646098d3 (patch) | |
tree | 660b85142c62cf5afffbc4d87d73f8293e7eea08 /satellit_installer/includes/90-patch_misc_files.inc | |
parent | Include for common java daemon respawning/start control (diff) | |
download | setup-scripts-0f3adf1b54a23fdc36e82a8e8ed1ef64646098d3.tar.gz setup-scripts-0f3adf1b54a23fdc36e82a8e8ed1ef64646098d3.tar.xz setup-scripts-0f3adf1b54a23fdc36e82a8e8ed1ef64646098d3.zip |
[SSPS] Changed the way dmsd and syncdaemon are started and stopped.
Also added a few more patches to bashrc and vimrc
Diffstat (limited to 'satellit_installer/includes/90-patch_misc_files.inc')
-rw-r--r-- | satellit_installer/includes/90-patch_misc_files.inc | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/satellit_installer/includes/90-patch_misc_files.inc b/satellit_installer/includes/90-patch_misc_files.inc new file mode 100644 index 0000000..aaaceeb --- /dev/null +++ b/satellit_installer/includes/90-patch_misc_files.inc @@ -0,0 +1,22 @@ +patch_bashrc() { + echo "#" + echo "# As one of the last things here we will set a new prompt to distinguish" + echo "# the beLehrpool satellite server from other servers. To accomplish this" + echo "# we will set a very classy prompt. This will take effect at next root login." + echo -n "# Setting prompt..." + if [ $(grep -c \ + 'PS1\=\"\\\[\\033\[01;31m\\\]\\u\\\[\\033\[00m\\\]@\\\[\\033\[01;32m\\\]\\h \\\[\\033\[01;34m\\\]\\w\\\[\\033\[00m\\\] # \"' \ + /root/.bashrc) -gt 0 ]; then + echo " already done." + else + echo 'PS1="\[\033[01;31m\]\u\[\033[00m\]@\[\033[01;32m\]\h \[\033[01;34m\]\w\[\033[00m\] # "' >> /root/.bashrc + echo " ok." + fi + # aliases, dircolors + sed -i -r 's/# *(alias|export LS|eval ")/\1/' /root/.bashrc +} + +patch_vim() { + sed -i -r 's/" *(syntax|set background|set showmatch|set smartcase|set incsearch)/\1/' /etc/vim/vimrc +} + |