#!/bin/sh rm -rf /var/opt/microsoft/auoms/data if [ -e /bin/systemctl ]; then rm /etc/init.d/auoms fi if [ "$1" = "configure" ]; then if [ -e /etc/audisp/plugins.d/auoms.conf.auomssave ]; then if [ -e /etc/audisp/plugins.d/auoms.conf ]; then rm /etc/audisp/plugins.d/auoms.conf fi cp -p /etc/audisp/plugins.d/auoms.conf.auomssave /etc/audisp/plugins.d/auoms.conf fi if [ -e /etc/audit/plugins.d/auoms.conf.auomssave ]; then if [ -e /etc/audit/plugins.d/auoms.conf ]; then rm /etc/audit/plugins.d/auoms.conf fi cp -p /etc/audit/plugins.d/auoms.conf.auomssave /etc/audit/plugins.d/auoms.conf fi /opt/microsoft/auoms/bin/auomsctl upgrade fi rm -f /etc/audisp/plugins.d/auoms.conf.* rm -f /etc/audit/plugins.d/auoms.conf.* exit 0