Description:
When uninstalling the agent, the output of the uninstall displays duplicate messages.
Reproduce:
Uninstall agent using sudo apt purge nginx-agent
Expected Result:
Logs show no duplicate messages.
Actual Result:
Logs show duplicate messages, see output below.
Output of sudo apt purge nginx-agent:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
nginx-agent*
0 upgraded, 0 newly installed, 1 to remove and 61 not upgraded.
After this operation, 26.2 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 68488 files and directories currently installed.)
Removing nginx-agent (2.25.0) ...
Stop and disable nginx-agent service
Running daemon-reload
Removing run directory
(Reading database ... 68486 files and directories currently installed.)
Purging configuration files for nginx-agent (2.25.0) ...
Stop and disable nginx-agent service
Running daemon-reload
Removing run directory
dpkg: warning: while removing nginx-agent, directory '/var/log/nginx-agent' not empty so not removed
dpkg: warning: while removing nginx-agent, directory '/etc/nginx-agent' not empty so not removed
Description:
When uninstalling the agent, the output of the uninstall displays duplicate messages.
Reproduce:
Uninstall agent using
sudo apt purge nginx-agentExpected Result:
Logs show no duplicate messages.
Actual Result:
Logs show duplicate messages, see output below.
Output of
sudo apt purge nginx-agent: