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

Change strategy for pam.d entry

The symbolic link did not stay a symbolic link.
Use %post in rpm instead.
This commit is contained in:
Jarrod Johnson 2018-11-14 15:11:05 -05:00
parent c56c1948a9
commit cb2133e871
3 changed files with 3 additions and 2 deletions

View File

@ -40,6 +40,9 @@ true
%post
sysctl -p /usr/lib/sysctl.d/confluent.conf >& /dev/null
if [ -x /usr/bin/systemctl ]; then /usr/bin/systemctl try-restart confluent >& /dev/null; fi
if [ ! -e /etc/pam.d/confluent ]; then
ln -s /etc/pam.d/sshd /etc/pam.d/confluent
fi
true
%clean

View File

@ -1 +0,0 @@
/etc/pam.d/sshd

View File

@ -22,7 +22,6 @@ setup(
'pyghmi>=1.0.44'],
scripts=['bin/confluent', 'bin/confluentdbutil', 'bin/collective'],
data_files=[('/etc/init.d', ['sysvinit/confluent']),
('/etc/pam.d/', ['pam/confluent']),
('/usr/lib/sysctl.d', ['sysctl/confluent.conf']),
('/usr/lib/systemd/system', ['systemd/confluent.service']),
('/opt/confluent/lib/python/confluent/plugins/console/', [])],