Skip to content
This repository has been archived by the owner. It is now read-only.

Re-install /etc/skel/.bashrc to enable bash coloring #207

Closed
GoogleCodeExporter opened this issue Mar 24, 2015 · 2 comments
Closed

Re-install /etc/skel/.bashrc to enable bash coloring #207

GoogleCodeExporter opened this issue Mar 24, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

@GoogleCodeExporter GoogleCodeExporter commented Mar 24, 2015

Re-install /etc/skel/.bashrc to enable bash coloring

Original issue reported on code.google.com by doug.bu...@gmail.com on 24 Jan 2012 at 10:21

@GoogleCodeExporter
Copy link
Author

@GoogleCodeExporter GoogleCodeExporter commented Mar 24, 2015

Added the following to security-onion-upgrade.sh:


sed -i 's| |=|g' $CONF
source $CONF
if [ "$VERSION" = "20120124" ]; then
        NEW="20120125"
        echo "**********************************************"   | $LOGGER
        echo "* Upgrading from $VERSION to $NEW."               | $LOGGER
        echo "**********************************************"   | $LOGGER
        DIR="/nsm/backup/$NEW"
        mkdir -p $DIR                                           | $LOGGER
        cd $DIR

    echo "* Installing new NSM scripts"         | $LOGGER
    FILE=securityonion-nsmnow-admin-scripts_"$NEW"_i386.deb
    wget -q http://sourceforge.net/projects/security-onion/files/$NEW/$FILE -O $FILE | $LOGGER
    dpkg -i $FILE                       | $LOGGER

    echo "* Updating /etc/skel/"                | $LOGGER
    FILE=_bashrc
    wget -q http://sourceforge.net/projects/security-onion/files/$NEW/$FILE -O $FILE | $LOGGER
    cp $FILE /etc/skel/.bashrc
    FILE=_bash_logout
    wget -q http://sourceforge.net/projects/security-onion/files/$NEW/$FILE -O $FILE | $LOGGER
    cp $FILE /etc/skel/.bash_logout
    FILE=_profile
    wget -q http://sourceforge.net/projects/security-onion/files/$NEW/$FILE -O $FILE | $LOGGER
    cp $FILE /etc/skel/.profile
    FILE=securityonion-skel-sguilrc_"$NEW"_i386.deb
    wget -q http://sourceforge.net/projects/security-onion/files/$NEW/$FILE -O $FILE | $LOGGER
    dpkg -i $FILE                       | $LOGGER

        sed -i "s|VERSION=$VERSION|VERSION=$NEW|g" $CONF        | $LOGGER
        echo "* Upgrade to $NEW complete."                      | $LOGGER
        echo 
fi

Original comment by doug.bu...@gmail.com on 26 Jan 2012 at 9:29

  • Added labels: ****
  • Removed labels: ****
@GoogleCodeExporter
Copy link
Author

@GoogleCodeExporter GoogleCodeExporter commented Mar 24, 2015

Published:
http://securityonion.blogspot.com/2012/01/security-onion-20120125-now-available.
html

Original comment by doug.bu...@gmail.com on 26 Jan 2012 at 9:33

  • Changed state: Verified
  • Added labels: ****
  • Removed labels: ****
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant