uyuni-project / uyuni-tools

Tools to work with containerized Uyuni server
Apache License 2.0
14 stars 18 forks source link

Log fixes #389

Closed cbosdo closed 2 months ago

cbosdo commented 2 months ago

What does this PR change?

Write the log file to /var/log/uyuni-tools.log if permissions allow it, otherwise try the home directory or even the PWD in the worse case. Also output the shell scripts outputs to the log file.

Test coverage

Links

Issue(s): #

Changelogs

Make sure the changelogs entries you are adding are compliant with https://github.com/uyuni-project/uyuni/wiki/Contributing#changelogs and https://github.com/uyuni-project/uyuni/wiki/Contributing#uyuni-projectuyuni-repository

If you don't need a changelog check, please mark this checkbox:

If you uncheck the checkbox after the PR is created, you will need to re-run changelog_test (see below)

Before you merge

Check How to branch and merge properly!