#!/bin/sh

. /etc/appliance/scriptsLib-3.0/maintenance.lib

# checks for maintenance_state for previous attempts
state=`getMaintenanceState`
if [ $state != "$STATE_MAINTENANCE" ]; then
    # nothing to be done here
    exit 0
fi

/usr/bin/ensim-python /usr/local/sbin/UninstallServiceFromDomains $1 2>&1 >> /tmp/uninstall.log
