The default nginx package creates a symlink named
default in the
sites-enabled dir, which points to a default config file in
sites-available. I'm currently creating a package for an app that sits on top of Nginx, and I want to remove or move away the
default symlink, and replace it with the config file from my package. Ideally, in the event that my package is removed, the original
default symlink will be restored.
I've been reading the manpage and examples of
dpkg-divert, but I don't quite see that it can do this. Is this achievable with
dpkg-divert, or do I have to think of another way?