I currently have an Ubuntu 18.04 server with php-fpm installed. In the spirit of maintainability, instead of editing /etc/php/{version}/fpm/pool.d/www.conf
I copied it and renamed it as {domain}.conf for two reasons:
1) I might have more sites and thereby more pools;
2) when I run apt upgrade
I don't want to have to merge in changes from the package.
To avoid the default www.conf
being loaded when starting the php-fpm service due to collisions with the site pool, I renamed it to www.conf.dpkg
so that it is not loaded. But each time I upgrade the php-fpm package, apt asks me to choose what to do:
Configuration file '/etc/php/{version}/fpm/pool.d/www.conf'
==> Deleted (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
How can I make sure this doesn't happen, or at least the changes get automatically funneled in the renamed file?