Skip to content

Commit

Permalink
systemd services: rename mongod.service (cve-search#1052)
Browse files Browse the repository at this point in the history
* systemd services: rename mongod.service

* black formatting

* README.md add workflow badges
  • Loading branch information
oh2fih authored Jan 26, 2024
1 parent cf84bad commit e7beffc
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 20 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ cve-search
==========

[![Join the chat at https://gitter.im/cve-search/cve-search](https://badges.gitter.im/cve-search/cve-search.svg)](https://gitter.im/cve-search/cve-search?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

![cve-search logo](https://avatars3.githubusercontent.com/u/15033728?v=3&s=200)

![Build & Test](https://github.com/cve-search/cve-search/workflows/Build%20&%20Test/badge.svg)
![Black formatting](https://github.com/cve-search/cve-search/workflows/Black%20formatting/badge.svg)
![CodeQL](https://github.com/cve-search/cve-search/workflows/CodeQL/badge.svg)

![cve-search logo](https://avatars3.githubusercontent.com/u/15033728?v=3&s=200)

cve-search is a tool to import CVE (Common Vulnerabilities and Exposures) and
CPE (Common Platform Enumeration) into a MongoDB to facilitate search
Expand Down
4 changes: 2 additions & 2 deletions _etc/systemd/system/cvesearch.db_init.service
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Unit]
Description=circl dot lu CVE-Search database initialization (only run this once!)
Requires=mongodb.service redis-server.service
After=network.target mongodb.service redis-server.service
Requires=mongod.service redis-server.service
After=network.target mongod.service redis-server.service
RefuseManualStart=true
Documentation=https://cve-search.github.io/cve-search/getting_started/installation.html

Expand Down
4 changes: 2 additions & 2 deletions _etc/systemd/system/cvesearch.db_repopulate.service
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Unit]
Description=circl dot lu CVE-Search database repopulation (drop & reimport everything)
Requires=mongodb.service redis-server.service
After=network.target cvesearch.db_init.service cvesearch.db_updater.service mongodb.service redis-server.service
Requires=mongod.service redis-server.service
After=network.target cvesearch.db_init.service cvesearch.db_updater.service mongod.service redis-server.service
RefuseManualStart=true
Documentation=https://cve-search.github.io/cve-search/database/database.html

Expand Down
4 changes: 2 additions & 2 deletions _etc/systemd/system/cvesearch.db_updater.service
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Unit]
Description=circl dot lu CVE-Search db_updater service
Requires=mongodb.service redis-server.service
After=network.target cvesearch.db_init.service cvesearch.db_repopulate.service mongodb.service redis-server.service
Requires=mongod.service redis-server.service
After=network.target cvesearch.db_init.service cvesearch.db_repopulate.service mongod.service redis-server.service
Documentation=https://cve-search.github.io/cve-search/database/database.html

[Service]
Expand Down
4 changes: 2 additions & 2 deletions _etc/systemd/system/cvesearch.web.service
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Unit]
Description=circl dot lu CVE-Search Web Server
Requires=mongodb.service
After=network.target cvesearch.db_init.service cvesearch.db_repopulate.service mongodb.service
Requires=mongod.service
After=network.target cvesearch.db_init.service cvesearch.db_repopulate.service mongod.service
Documentation=https://cve-search.github.io/cve-search/webgui/webgui.html

[Service]
Expand Down
6 changes: 3 additions & 3 deletions bin/dump_last.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@
+ str(datetime.datetime.now())
)
feed.feed["link"] = "http://adulau.github.com/cve-search/"
feed.feed[
"author"
] = "Generated with cve-search available at http://adulau.github.com/cve-search/"
feed.feed["author"] = (
"Generated with cve-search available at http://adulau.github.com/cve-search/"
)
feed.feed["description"] = ""
else:
print("<html><head>")
Expand Down
12 changes: 6 additions & 6 deletions lib/DatabasePlugins/mongodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,13 +309,13 @@ def datatables_data_columns_ordering(self, request_values):
check_col_match.group(3)
] = request_values[each]
else:
col[check_col_match.group(1)][
check_col_match.group(2)
] = request_values[each]
col[check_col_match.group(1)][check_col_match.group(2)] = (
request_values[each]
)
if check_order_match:
order[check_order_match.group(1)][
check_order_match.group(2)
] = request_values[each]
order[check_order_match.group(1)][check_order_match.group(2)] = (
request_values[each]
)

return col, order

Expand Down
1 change: 1 addition & 0 deletions lib/LogHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
LogHandler.py
=============
"""

import logging
import os
import platform
Expand Down
1 change: 1 addition & 0 deletions web/helpers/server_side_datatables.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
server_side_datatables.py
=========================
"""

from collections import namedtuple, defaultdict


Expand Down

0 comments on commit e7beffc

Please sign in to comment.