amidaware / rmmagent

Tactical RMM Agent
https://github.com/amidaware/tacticalrmm
Other
132 stars 76 forks source link

Linux Agent: Reboot Required Logic Wrong #8

Closed eCloudJTuttle closed 2 years ago

eCloudJTuttle commented 2 years ago

For all of our Linux servers, they all show "Reboot Required". Running the command on the machine "needs-restarting" returns code 0, so machine does not require a reboot.

The source code looks for the file needs-restarting and returns true if the file exists. If the file does exist, the command should be called, and if the return code is not zero, then it requires reboot.

wh1te909 commented 2 years ago

thanks nice catch! I totally did forget to actually call the binary lol