schirrmie / upm

universal patch manager
GNU General Public License v3.0
34 stars 2 forks source link

AlmaLinux #4

Open Veeau opened 3 years ago

Veeau commented 3 years ago

Hello,

Is it possible to get settings for AlmaLinux? I tried copying the Centos commands but they seem to error on "Error while executing inventory_server"

schirrmie commented 3 years ago

Hello, sorry I don't have AlmaLinux and can't test it. Please look into apache error_log. You can also try to execute the commands by hand. Is every command executed successfully?

Veeau commented 3 years ago

Thanks for the quick reply. Im not seeing anything in the Apache error logs and the only command that returns nothing is

set -o pipefail; yum list updates | tr '\n' ' ' | sed -n -e 's/^.*Updated Packages //p' | xargs -n3 | awk '{print $1}'

everything else executes ok.

schirrmie commented 3 years ago

First check whether this command is really the problem. Backup the line and put for testing the following in echo "Hello World" Now try to inventory. If it is successful you should have an package for update with "Hello World". If the line is the problem we look closer.

buzzzo commented 3 years ago

Yum list updates output is not equal to centos|redhat <=7.x.

the correct "command" is: set -o pipefail; yum list updates | tr '\n' ' ' | sed -n -e 's/^.*Available Upgrades //p' | xargs -n3 | awk '{print $1}'