Tests/regression-satellite: fix permission denied error in cleanup()

The cleanup() function cats the httpd log and error file, but did not
use sudo, which failed on permissions. Fix that.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2024-07-24 16:35:46 +02:00 committed by Alexander Todorov
parent df161ad23d
commit d4c8f74ee4

View file

@ -83,8 +83,8 @@ function cleanup {
set +eu
greenprint "Display httpd logs"
cat /var/log/httpd/access_log
cat /var/log/httpd/error_log
sudo cat /var/log/httpd/access_log
sudo cat /var/log/httpd/error_log
greenprint "Putting things back to their previous configuration"