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

/usr/local/bin/pulledpork_update.sh should check whether it's running interactively or from cron #127

Closed
GoogleCodeExporter opened this issue Mar 24, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

When running /usr/local/bin/pulledpork_update.sh on a slave sensor (gets its 
rules from a master instead of directly from the Internet), the script waits 5 
minutes for the master to complete its download from the Internet.  This is 
great for running from a cronjob, but not so great if you're running it 
interactively and are trying to get a new ruleset deployed as quickly as 
possible.

Change this:

echo "Sleeping for 5 minutes to allow master time to download new rules."
sleep 5m 

to this:

# Determine if we are running interactively or from cron
        tty -s
        if [ $? -gt 0 ]
        then
                echo "Sleeping for 5 minutes to allow master time to download new rules."
                sleep 5m 
        fi

Original issue reported on code.google.com by doug.bu...@gmail.com on 2 Oct 2011 at 2:45

@GoogleCodeExporter
Copy link
Author

Published:
http://securityonion.blogspot.com/2011/10/security-onion-20111001-now-available.
html

Original comment by doug.bu...@gmail.com on 2 Oct 2011 at 2:58

  • 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