fix indent issue with HERE doc and EOF, change if statement to only find rpm packages for nginx