File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Change Log
2
2
All notable changes to this project will be documented in this file.
3
3
4
+ ## [ v1.05] - 2016-01-27
5
+ ### Fixed
6
+ - * ossec_ruleset.py* :
7
+ - Problem with installation path
8
+ - New path: /var/ossec/** update/ruleset/** ossec_ruleset.py
9
+
10
+
4
11
## [ v1.04] - 2016-01-25
5
12
### Added
6
13
- New Rootcheck: SSH Hardening
Original file line number Diff line number Diff line change 1
- 1.04
1
+ 1.05
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
# OSSEC Ruleset Installer and Updater
3
3
4
- # v2.2 2016/01/25
4
+ # v2.2 2016/01/27
5
5
# Created by Wazuh, Inc. <[email protected] >.
6
6
7
7
# This program is a free software; you can redistribute it and/or modify it under the terms of GPLv2
@@ -337,7 +337,11 @@ def get_ruleset_from_menu(type_ruleset):
337
337
logger .log ("\n Error: No folder {0}" .format (directory ))
338
338
sys .exit (2 )
339
339
340
- type_directory = "rules" if "rules" in directory else "rootchecks"
340
+ last_path = directory .split ("/" )[- 1 ]
341
+ if last_path == "rootcheck" :
342
+ type_directory = "rootchecks"
343
+ else :
344
+ type_directory = "rules"
341
345
342
346
ruleset_select = []
343
347
@@ -1139,7 +1143,7 @@ def usage():
1139
1143
# Vars
1140
1144
ossec_path = "/var/ossec"
1141
1145
ossec_conf = "{0}/etc/ossec.conf" .format (ossec_path )
1142
- updater_path = "{0}/updater /ruleset" .format (ossec_path )
1146
+ updater_path = "{0}/update /ruleset" .format (ossec_path )
1143
1147
# updater_path = "."
1144
1148
bk_directory = "{0}/backups" .format (updater_path )
1145
1149
log_path = "{0}/ossec_ruleset.log" .format (updater_path )
You can’t perform that action at this time.
0 commit comments