2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

Fix rpm spec file

There was an ommision and a mistake.
This commit is contained in:
Jarrod Johnson 2020-01-31 10:37:49 -05:00
parent 0badd9e5b4
commit ff0b1bba7f

View File

@ -69,12 +69,13 @@ find /etc/confluent -uid 0 | egrep '.*' && NEEDCHOWN=1
find /var/log/confluent -uid 0 | egrep '.*' && NEEDCHOWN=1
find /var/run/confluent -uid 0 | egrep '.*' && NEEDCHOWN=1
if [ $NEEDCHOWN = 1 ]; then
if systemctl is-active confluent > /dev/null;
if systemctl is-active confluent > /dev/null; then
NEEDSTART=1
systemctl stop confluent
fi
chown -R confluent:confluent /etc/confluent /var/lib/confluent /var/run/confluent /var/log/confluent
fi
systemctl daemon-reload
if systemctl is-active confluent > /dev/null || [ $NEEDSTART = 1 ]; then /usr/bin/systemctl restart confluent >& /dev/null; fi
if [ ! -e /etc/pam.d/confluent ]; then
ln -s /etc/pam.d/sshd /etc/pam.d/confluent