jgstew / tools

various scripts and tools
MIT License
23 stars 14 forks source link

install_bigfix.sh doesn't check for pre-existance of BigFix, might cause problem with RPM #2

Closed jgstew closed 8 years ago

jgstew commented 8 years ago

needs improvement: https://github.com/jgstew/tools/blob/master/bash/install_bigfix.sh

The RPM installer seems to have an issue when the client already exists. This seems like a flaw in the RPM installer as much as anything else.

From CentOS:

Preparing...                          ################################# [100%]
        file /opt/BESClient/bin/BESClient from install of BESAgent-9.5.1.9-rhe5.x86_64 conflicts with file from package BESAgent-9.2.6.94-rhe5.x86_64
        file /opt/BESClient/bin/XBESClientUI from install of BESAgent-9.5.1.9-rhe5.x86_64 conflicts with file from package BESAgent-9.2.6.94-rhe5.x86_64
        file /opt/BESClient/bin/libBEScrypto.so from install of BESAgent-9.5.1.9-rhe5.x86_64 conflicts with file from package BESAgent-9.2.6.94-rhe5.x86_64
        file /opt/BESClient/bin/libBEScryptoFIPS.so from install of BESAgent-9.5.1.9-rhe5.x86_64 conflicts with file from package BESAgent-9.2.6.94-rhe5.x86_64
        file /opt/BESClient/bin/qna from install of BESAgent-9.5.1.9-rhe5.x86_64 conflicts with file from package BESAgent-9.2.6.94-rhe5.x86_64
        file /opt/BESClient/bin/xqna from install of BESAgent-9.5.1.9-rhe5.x86_64 conflicts with file from package BESAgent-9.2.6.94-rhe5.x86_64
jgstew commented 8 years ago

This seems to be the proper method for upgrades for the RPM client installer:

/etc/init.d/besclient stop
rpm -U BESAgent.rpm
/etc/init.d/besclient start

It is a bit annoying to have to do it this way, but it may be better than possibly leaving things in an odd state.

jgstew commented 8 years ago

Should be solved by: https://github.com/jgstew/tools/commit/15c97b8e46224d52cb301737b65458de26bca720