-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
systemctl disable
output is masked and failure is not handled
#2107
Comments
Hello @jsoref Thank you for reporting this, could you tell us which version of Wazuh were you using? That command should only be executed during an upgrade when the old version is |
It's kinda irrelevant. Your code is broken and in certain cases apt will use the latest version. I'm not sure offhand, I turned off the computer. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I just tried to remove wazuh from a system and the apt/dpkg process failed miserably.
It took too much effort to debug, the error was from this line:
wazuh-packages/debs/SPECS/wazuh-manager/debian/preinst
Line 69 in daeeaa5
At the very least, if the output and error are going to be ignored, the error code should as well.
For debugging, I changed the code...
Here's the run w/ that change (under
sh -x
):+ systemctl disable wazuh-agent Synchronizing state of wazuh-agent.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install disable wazuh-agent Failed to disable unit: Too many levels of symbolic links + echo disable failed -- oh well disable failed -- oh well
The text was updated successfully, but these errors were encountered: