#!/bin/sh
set -e
if [ "$1" = "remove" ]; then
deb-systemd-invoke stop imunify360-php-daemon.service || true
deb-systemd-invoke stop imunify360-php-daemon.socket || true
# remove PHP socket
rm -f /opt/imunify360/lib/proactive.sock
# remove database files
rm -f /var/imunify360/proactive.db*
rm -f /usr/share/i360-php-opts/.use_file_gw
fi