AlmaLinux / almalinux-deploy

EL to AlmaLinux migration tool.
GNU General Public License v3.0
535 stars 71 forks source link

Make almalinux-deploy.sh safer and easier to debug #213

Open digirave opened 3 months ago

digirave commented 3 months ago

Hello,

I noticed a bad debug log behavior with almalinux-deploy.sh

It is good that is creates log files almalinux-deploy.log and almalinux-deploy.debug.log in /var/log by default.

However, it is really bad it overwrites them each time it is run.

To explain, I had a few almalinux-deploy.sh conversion errors.

However the problem is that since we had errors, I re-ran the script. In such cases the log files are overwritten, but the errors did not occur when the script is re-run. I would think this would happen in a large number of cases where almalinux-deploy.sh fails and is re-run.

Therefore, I suggest updating almalinux-deploy.sh so that the log files are not overwritten but appended or incremented per run.

Thank you.