Redhat compliant fixes in %preun
- don't delete pandora user. see https://fedoraproject.org/wiki/Packaging:UsersAndGroups#Allocation_Strategies - don't delete log files and files which created by user.
This commit is contained in:
parent
6e7acb3124
commit
b29d4394c2
|
@ -114,21 +114,24 @@ fi
|
||||||
|
|
||||||
/sbin/chkconfig --del pandora_agent_daemon
|
/sbin/chkconfig --del pandora_agent_daemon
|
||||||
/etc/rc.d/init.d/pandora_agent_daemon stop >/dev/null 2>&1 || :
|
/etc/rc.d/init.d/pandora_agent_daemon stop >/dev/null 2>&1 || :
|
||||||
/usr/sbin/userdel pandora
|
|
||||||
rm -Rf /etc/pandora/pandora_agent.conf
|
# Remove symbolic links
|
||||||
rm -Rf /var/log/pandora/pandora_agent* 2> /dev/null
|
pushd /etc/pandora
|
||||||
rm -Rf /usr/share/pandora_agent
|
for f in pandora_agent.conf plugins collections
|
||||||
|
do
|
||||||
|
[ -L $f ] && rm -f $f
|
||||||
|
done
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(750,pandora,root)
|
%defattr(750,root,root)
|
||||||
/usr/bin/pandora_agent
|
/usr/bin/pandora_agent
|
||||||
/usr/bin/pandora_agent_exec
|
|
||||||
|
|
||||||
%defattr(755,pandora,root)
|
%defattr(755,pandora,root)
|
||||||
%{prefix}/pandora_agent
|
%{prefix}/pandora_agent
|
||||||
|
|
||||||
%defattr(755,root,root)
|
%defattr(755,root,root)
|
||||||
|
/usr/bin/pandora_agent_exec
|
||||||
/usr/bin/tentacle_client
|
/usr/bin/tentacle_client
|
||||||
/etc/rc.d/init.d/pandora_agent_daemon
|
/etc/rc.d/init.d/pandora_agent_daemon
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue