mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 00:28:22 +00:00
fix: [pystemon-feeder] paste save path
This commit is contained in:
parent
4dde62f26e
commit
44d19fbb80
3 changed files with 4 additions and 5 deletions
|
@ -42,6 +42,8 @@ else:
|
||||||
zmq_url = "tcp://127.0.0.1:5556"
|
zmq_url = "tcp://127.0.0.1:5556"
|
||||||
|
|
||||||
pystemonpath = cfg.get("Directories", "pystemonpath")
|
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
|
base_sleeptime = 0.01
|
||||||
sleep_inc = 0
|
sleep_inc = 0
|
||||||
|
|
||||||
|
@ -65,7 +67,7 @@ while True:
|
||||||
try:
|
try:
|
||||||
with open(pystemonpath+paste, 'rb') as f: #.read()
|
with open(pystemonpath+paste, 'rb') as f: #.read()
|
||||||
messagedata = 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) ] )
|
s = b' '.join( [ topic.encode(), path_to_send.encode(), base64.b64encode(messagedata) ] )
|
||||||
socket.send(s)
|
socket.send(s)
|
||||||
|
|
|
@ -3,7 +3,6 @@ bloomfilters = Blooms
|
||||||
dicofilters = Dicos
|
dicofilters = Dicos
|
||||||
pastes = PASTES
|
pastes = PASTES
|
||||||
hash = HASHS
|
hash = HASHS
|
||||||
base64 = BASE64
|
|
||||||
crawled = crawled
|
crawled = crawled
|
||||||
crawled_screenshot = CRAWLED_SCREENSHOT
|
crawled_screenshot = CRAWLED_SCREENSHOT
|
||||||
|
|
||||||
|
|
|
@ -92,9 +92,7 @@ pushd var/www/
|
||||||
./update_thirdparty.sh
|
./update_thirdparty.sh
|
||||||
popd
|
popd
|
||||||
|
|
||||||
year1=20`date +%y`
|
mkdir -p $AIL_HOME/PASTES2
|
||||||
year2=20`date --date='-1 year' +%y`
|
|
||||||
mkdir -p $AIL_HOME/{PASTES,Blooms,dumps}
|
|
||||||
|
|
||||||
pip3 install -U pip
|
pip3 install -U pip
|
||||||
pip3 install -U -r pip3_packages_requirement.txt
|
pip3 install -U -r pip3_packages_requirement.txt
|
||||||
|
|
Loading…
Reference in a new issue