#Problem Statements 2 & 3
Write an automation bash script named ‘automation.sh’ to perform the following subtasks :
It Updates the package details and the package list and then installs apache2 After installation checks if apache2 is running or not. It also checks if apache2 is enabled and if not, it enables it. Compresses the log files generated by apache2 Uploads the compressed file to the s3 bucket The script itself will set a cron job that will run the script at a regular interval of time.