id / kafka-el7-rpm

A set of scripts to package Apache Kafka into an rpm (CentOS/RedHat 7)
54 stars 40 forks source link

Spec fixes #10

Closed thias closed 7 years ago

thias commented 7 years ago

Fix (silently) broken postun scriplet.

With SELinux enabled, a local rpm install would have the useradd command fail to create the /opt/kafka directory, and the package install would fail. The exit 0 fixes this and rpm itself is able to create the directory just fine after %pre is run.

Also, since the kafka user is a system user, the -m was removed since it is not useful to have skel files copied to /opt/kafka (dot bash files).

id commented 7 years ago

Thanks! And sorry for the delay.