Sindbad~EG File Manager

Current Path : /var/lib/dpkg/info/
Upload File :
Current File : /var/lib/dpkg/info/omsconfig.prerm

#!/bin/sh
echo "Cleanning up existing dsc_hosts before uninstall..."
kill $(ps -eo pid,cmd | grep '/opt/dsc/bin/dsc_host' | grep -v grep | tr -s ' ' | sed 's/^[ \t]*//' | cut -d' ' -f1) -9 2&>1 > /dev/null
chmod -R 777 /opt/dsc
rm -rfv /opt/dsc
rm -f /etc/opt/omi/conf/omsconfig/inventory_lock
echo "Cleaned up existing dsc_hosts before uninstall..."

# if this is a package removal, not an upgrade, remove the modules
if [ "$1" = "0" -o "$1" = "remove" -o "$1" = "purge" ]; then
    # Remove all DSC specific data
    for module in `ls /opt/microsoft/omsconfig/modules`; do
        /opt/microsoft/omsconfig/Scripts/RemoveModule.py $module
    done
fi

exit 0

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists