Skip to content

Commit

Permalink
Merge pull request #6 from twelvesec/develop
Browse files Browse the repository at this point in the history
Update issues
  • Loading branch information
maldevel authored Jul 15, 2020
2 parents 541012f + c43485f commit 82c6bd4
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions rootend.py
Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,7 @@ def apache_check(user_var):

for dirpath, dirnames, filenames in walk(start):
for filename in filenames:
if filename == "apache2.conf": #Ubuntu/Debian
if filename == "apache2.conf" or filename == "httpd.conf": #Ubuntu/Debian or #Redhat
filename = path.join(dirpath, filename)
#print(filename)
#print(dirpath)
Expand All @@ -1321,14 +1321,14 @@ def apache_check(user_var):
#call function named owner_apache_check
owner_apache_check(filename, user_var)

elif filename == "httpd.conf": #Redhat
filename = path.join(dirpath, filename)
#elif filename == "httpd.conf": #Redhat
# filename = path.join(dirpath, filename)
#print(filename)
#print(dirpath)
apache2_check2(filename, user_var)
# apache_check2(filename, user_var)

#call function named owner_apache_check
owner_apache_check(filename, user_var)
# owner_apache_check(filename, user_var)


#db_files_check function
Expand Down Expand Up @@ -1373,17 +1373,17 @@ def owner_redis_check(filename, me):
if result[0] == me:
if result[2] >= '400':
#call function named banner_msg2
banner_mag2(filename)
banner_msg2(filename)
elif result[2] >= '200' and result[2] < '400':
#call function named banner_msg2
banner_mag2(filename)
banner_msg2(filename)
elif result[1] == me:
if result[3] >= '40':
#call function named banner_msg3
banner_mag3(filename)
banner_msg3(filename)
elif result[3] >= '20' and result[3] < '40':
#call function named banner_msg3
banner_mag3(filename)
banner_msg3(filename)


#redis_check function
Expand Down

0 comments on commit 82c6bd4

Please sign in to comment.