Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

nsm_server_user-add doesn't need to ask for server name #210

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

nsm_server_user-add doesn't need to ask for server name #210

GoogleCodeExporter opened this issue Mar 24, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

check for other nsm_server_* scripts that need to be updated as well

Original issue reported on code.google.com by doug.bu...@gmail.com on 26 Jan 2012 at 2:47

@GoogleCodeExporter
Copy link
Author

Updated the following files in /usr/local/sbin/:

nsm_server_backup-config
nsm_server_backup-data
nsm_server_clear
nsm_server_del
nsm_server_edit
nsm_server_sensor-add
nsm_server_sensor-del
nsm_server_user-add

Replaced user prompt with:
SERVER_NAME="securityonion"

Original comment by doug.bu...@gmail.com on 2 Feb 2012 at 1:21

  • Changed state: Started
  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Packaged:
/usr/local/lib/ruby/gems/1.9.1/gems/fpm-0.3.11/bin/fpm -s dir -t deb -n 
securityonion-nsmnow-admin-scripts -v 20120202 /etc/init.d/nsm* 
/usr/share/nsmnow/ /usr/local/sbin/nsm* /usr/local/lib/nsmnow/ 
/etc/cron.d/sensor-* /etc/cron.d/nsm* /etc/cron.d/bro* 
/etc/init/securityonion.conf

Original comment by doug.bu...@gmail.com on 2 Feb 2012 at 1:23

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

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

sed -i 's| |=|g' $CONF
source $CONF
if [ "$VERSION" = "20120125" ]; then
        NEW="20120202"
        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

        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 2 Feb 2012 at 1:24

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Published:
http://securityonion.blogspot.com/2012/02/security-onion-20120202-now-available.
html

Original comment by doug.bu...@gmail.com on 2 Feb 2012 at 1:42

  • 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
Development

No branches or pull requests

1 participant