Перейти к основному контенту

Удаление агента Itarian

nano uninstall_ccc.sh

#!/bin/bash
if find /etc/systemd/system/itsm.service -name itsm.service -print -quit;
then
systemctl stop itsm && systemctl disable itsm && rm -f /etc/systemd/system/itsm.service && rm -rf /opt/COMODO && rm -rf /run/comodo && rm -rf /etc/xdg/menus/applications-merged/comodo-comodo.menu && rm -rf ~/Desktop/comodo-ccs.desktop
read -p "REBOOT IS NEEDED, PERFORM NOW? Y/N " n
echo $n
if [ $n = Y ] || [ $n = y ];
then
/sbin/reboot
fi
elif find /etc/init/itsm.conf -name itsm.conf -print -quit;
then
stop itsm && rm /etc/init/itsm.conf && initctl reload-configuration && rm -rf /opt/COMODO && rm -rf /run/comodo && rm -rf /etc/xdg/menus/applications-merged/comodo-comodo.menu && rm -rf ~/Desktop/comodo-ccs.desktop
echo ""
echo "***COMODO CLIENT COMMUNICATION IS UNINSTALLED***"
echo ""
read -p "REBOOT IS NEEDED, PERFORM NOW? Y/N " n
echo $n
if [ $n = Y ] || [ $n = y ];
then
/sbin/reboot
fi
else
echo ""
echo "***DEVICE IS NOT ENROLLED IN ITSM***"
echo ""
fi

chmod +x uninstall_ccc.sh
sudo sh uninstall_ccc.sh