Change script of uninstall agent. Tiquet: #2357
if dont found satellite conf and server conf, delete pandora config dir.
(cherry picked from commit 5736e3a48d
)
This commit is contained in:
parent
19bc81ffe2
commit
2ec30f9ae4
|
@ -43,7 +43,13 @@ uninstall () {
|
|||
echo "Removing Pandora Agent..."
|
||||
rm -Rf $PANDORA_BIN
|
||||
rm -Rf $PANDORA_TEMP
|
||||
rm -Rf $PANDORA_CFG
|
||||
|
||||
# Skip delete of /etc/pandora if exists configuration of a server or satellite
|
||||
if [ ! -f $PANDORA_CFG/pandora_server.conf -a ! -f $PANDORA_CFG/satellite_server.conf ]
|
||||
then
|
||||
rm -Rf $PANDORA_CFG
|
||||
fi
|
||||
|
||||
rm -Rf $PANDORA_STARTUP
|
||||
rm -Rf $PANDORA_HOME
|
||||
rm -Rf $PANDORA_LOG
|
||||
|
|
|
@ -43,7 +43,13 @@ uninstall () {
|
|||
echo "Removing Pandora Agent..."
|
||||
rm -Rf $PANDORA_BIN
|
||||
rm -Rf $PANDORA_TEMP
|
||||
rm -Rf $PANDORA_CFG
|
||||
|
||||
# Skip delete of /etc/pandora if exists configuration of a server or satellite
|
||||
if [ ! -f $PANDORA_CFG/pandora_server.conf -a ! -f $PANDORA_CFG/satellite_server.conf ]
|
||||
then
|
||||
rm -Rf $PANDORA_CFG 2> /dev/null
|
||||
fi
|
||||
|
||||
rm -Rf $PANDORA_STARTUP
|
||||
rm -Rf $PANDORA_HOME
|
||||
rm -Rf $PANDORA_LOG
|
||||
|
|
|
@ -197,8 +197,8 @@ uninstall () {
|
|||
rm -Rf $PANDORA_BASE$PANDORA_MAN/{man1,cat1}/tentacle_client.1.gz 2> /dev/null
|
||||
rm -Rf $PANDORA_BASE$PANDORA_MAN/{man1,cat1}/pandora_agent.1.gz 2> /dev/null
|
||||
|
||||
# Skip delete of /etc/pandora if exists configuration of a server
|
||||
if [ ! -f $PANDORA_BASE/$PANDORA_CFG/pandora_server.conf ]
|
||||
# Skip delete of /etc/pandora if exists configuration of a server or satellite
|
||||
if [ ! -f $PANDORA_BASE/$PANDORA_CFG/pandora_server.conf -a ! -f $PANDORA_BASE/$PANDORA_CFG/satellite_server.conf ]
|
||||
then
|
||||
rm -Rf $PANDORA_BASE/$PANDORA_CFG 2> /dev/null
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue