Interesting. I'd have to maintain a list of files I "disabled" but it may end up being worth it. Although, commenting or emptying the files when I'm initially building my template may be less effort in the long run. I'll have to think about it. Thanks for
the feedback! 🙂
Scott
From: Yehuda Katz <yehuda@xxxxxxxxxx>
Sent: June 11, 2020 7:31 PM To: users@xxxxxxxxxxxxxxxx <users@xxxxxxxxxxxxxxxx> Subject: Re: [users@httpd] How to permanently disable default config files You can use yum-plugin-post-transaction-actions to delete the files (not currently available in CentOS 8 though):
Create a file named /etc/yum/post-actions/httpd.action
With the content:
httpd*:update:rm -f /etc/httpd/conf.d/file_to_delete
You should also be able to leave the files empty instead of deleting them - yum should leave the modified files alone.
- Y
Sent from a device with a very small keyboard and hyperactive autocorrect.
On Wed, Jun 10, 2020, 5:29 PM Scott A. Wozny <sawozny@xxxxxxxxxxx> wrote:
|