#!/bin/sh if [ -e /opt/microsoft/auoms/bin/auoms ]; then rm /opt/microsoft/auoms/bin/auoms fi if [ -e /opt/microsoft/auoms/bin/auomscollect ]; then rm /opt/microsoft/auoms/bin/auomscollect fi if [ "$1" = "upgrade" ]; then if [ -e /etc/audisp/plugins.d/auoms.conf ]; then if [ -e /etc/audisp/plugins.d/auoms.conf.auomssave ]; then rm /etc/audisp/plugins.d/auoms.conf.auomssave fi cp -p /etc/audisp/plugins.d/auoms.conf /etc/audisp/plugins.d/auoms.conf.auomssave fi if [ -e /etc/audit/plugins.d/auoms.conf ]; then if [ -e /etc/audit/plugins.d/auoms.conf.auomssave ]; then rm /etc/audit/plugins.d/auoms.conf.auomssave fi cp -p /etc/audit/plugins.d/auoms.conf /etc/audit/plugins.d/auoms.conf.auomssave fi fi exit 0