Skip to content

Commit

Permalink
Merge branch 'master' of github.com:CIRCL/AIL-framework
Browse files Browse the repository at this point in the history
  • Loading branch information
adulau committed Oct 2, 2018
2 parents 033aa5e + 15901d2 commit 5bea6b5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 3 additions & 1 deletion bin/feeder/pystemon-feeder.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
zmq_url = "tcp://127.0.0.1:5556"

pystemonpath = cfg.get("Directories", "pystemonpath")
pastes_directory = cfg.get("Directories", "pastes")
pastes_directory = os.path.join(os.environ['AIL_HOME'], pastes_directory)
base_sleeptime = 0.01
sleep_inc = 0

Expand All @@ -65,7 +67,7 @@
try:
with open(pystemonpath+paste, 'rb') as f: #.read()
messagedata = f.read()
path_to_send = pystemonpath+paste
path_to_send = pastes_directory+paste

s = b' '.join( [ topic.encode(), path_to_send.encode(), base64.b64encode(messagedata) ] )
socket.send(s)
Expand Down
1 change: 0 additions & 1 deletion bin/packages/config.cfg.sample
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ bloomfilters = Blooms
dicofilters = Dicos
pastes = PASTES
hash = HASHS
base64 = BASE64
crawled = crawled
crawled_screenshot = CRAWLED_SCREENSHOT

Expand Down
4 changes: 1 addition & 3 deletions installing_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,7 @@ pushd var/www/
./update_thirdparty.sh
popd

year1=20`date +%y`
year2=20`date --date='-1 year' +%y`
mkdir -p $AIL_HOME/{PASTES,Blooms,dumps}
mkdir -p $AIL_HOME/PASTES

pip3 install -U pip
pip3 install -U -r pip3_packages_requirement.txt
Expand Down

0 comments on commit 5bea6b5

Please sign in to comment.