2009-08-22 Sancho Lerena <slerena@artica.es>
* linux/pandora_agent.spec: Update uninstall process. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1873 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
409d50d61f
commit
9290339ef4
|
@ -1,3 +1,7 @@
|
||||||
|
2009-08-22 Sancho Lerena <slerena@artica.es>
|
||||||
|
|
||||||
|
* linux/pandora_agent.spec: Update uninstall process.
|
||||||
|
|
||||||
2009-08-20 Sancho Lerena <slerena@artica.es>
|
2009-08-20 Sancho Lerena <slerena@artica.es>
|
||||||
|
|
||||||
* bsd-ipso/pandora_agent.sh
|
* bsd-ipso/pandora_agent.sh
|
||||||
|
|
|
@ -104,43 +104,34 @@ fi
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ "$1" = 0 ]; then
|
|
||||||
/etc/init.d/pandora_agent_daemon stop
|
|
||||||
/usr/sbin/userdel pandora
|
|
||||||
rm /usr/bin/pandora_agent
|
|
||||||
rm /usr/bin/tentacle_client
|
|
||||||
rm /etc/init.d/pandora_agent_daemon
|
|
||||||
rm -Rf /usr/share/pandora_agent/
|
|
||||||
rm -Rf /etc/pandora/pandora_agent.conf
|
|
||||||
rm -Rf /etc/pandora/plugins
|
|
||||||
rm -Rf /var/spool/pandora/data_out
|
|
||||||
rm -Rf /var/log/pandora/pandora_agent* 2> /dev/null
|
|
||||||
|
|
||||||
%if "%{_vendor}" == "redhat"
|
/etc/init.d/pandora_agent_daemon stop
|
||||||
|
rm /etc/init.d/pandora_agent_daemon
|
||||||
|
/usr/sbin/userdel pandora
|
||||||
|
rm -Rf /etc/pandora/pandora_agent.conf
|
||||||
|
rm -Rf /var/log/pandora/pandora_agent* 2> /dev/null
|
||||||
|
|
||||||
|
%if "%{_vendor}" == "redhat"
|
||||||
/sbin/chkconfig --del pandora_agent_daemon
|
/sbin/chkconfig --del pandora_agent_daemon
|
||||||
rm /etc/rc0.d/K99pandora_agent_daemon
|
rm /etc/rc0.d/K99pandora_agent_daemon
|
||||||
rm /etc/rc3.d/S99pandora_agent_daemon
|
rm /etc/rc3.d/S99pandora_agent_daemon
|
||||||
rm /etc/rc5.d/S99pandora_agent_daemon
|
rm /etc/rc5.d/S99pandora_agent_daemon
|
||||||
%else
|
%else
|
||||||
rm /etc/rc.d/rc5.d/S99pandora_agent_daemon
|
rm /etc/rc.d/rc5.d/S99pandora_agent_daemon
|
||||||
rm /etc/rc.d/rc3.d/S99pandora_agent_daemon
|
rm /etc/rc.d/rc3.d/S99pandora_agent_daemon
|
||||||
rm /etc/rc.d/rc2.d/S99pandora_agent_daemon
|
rm /etc/rc.d/rc2.d/S99pandora_agent_daemon
|
||||||
rm /etc/rc.d/rc0.d/K99pandora_agent_daemon
|
rm /etc/rc.d/rc0.d/K99pandora_agent_daemon
|
||||||
%endif
|
%endif
|
||||||
fi
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(750,pandora,root)
|
%defattr(750,pandora,root)
|
||||||
%if "%{_vendor}" == "redhat"
|
|
||||||
/usr/bin/pandora_agent
|
/usr/bin/pandora_agent
|
||||||
%else
|
|
||||||
/usr/bin/pandora_agent
|
|
||||||
%endif
|
|
||||||
%defattr(770,pandora,root)
|
%defattr(770,pandora,root)
|
||||||
/var/log/pandora/
|
/var/log/pandora/
|
||||||
/var/spool/pandora/
|
|
||||||
/var/spool/pandora/data_out
|
/var/spool/pandora/data_out
|
||||||
|
|
||||||
%defattr(755,pandora,root)
|
%defattr(755,pandora,root)
|
||||||
/usr/bin/tentacle_client
|
/usr/bin/tentacle_client
|
||||||
/etc/init.d/pandora_agent_daemon
|
/etc/init.d/pandora_agent_daemon
|
||||||
|
|
Loading…
Reference in New Issue