Skip to content

Commit

Permalink
duplicated code removed
Browse files Browse the repository at this point in the history
  • Loading branch information
maldevel authored Jul 15, 2020
1 parent d9ac0b7 commit c43485f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 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)
apache_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

0 comments on commit c43485f

Please sign in to comment.