\npost_install() {


}
\npre_remove() {
	if [ -x "/etc/init.d/ufoai-server" ] || [ -e "/etc/init/ufoai-server.conf" ]; then
		invoke-rc.d ufoai-server stop || exit $?
	fi
}
\npost_remove() {



	if [ "$1" = "purge" ] ; then
	    rm -r /var/games/ufoai-server
	    rmdir --ignore-fail-on-non-empty /var/games
	fi

	if [ "$1" = "purge" ] ; then
		update-rc.d ufoai-server remove >/dev/null
	fi


	# In case this system is running systemd, we make systemd reload the unit files
	# to pick up changes.
	if [ -d /run/systemd/system ] ; then
		systemctl --system daemon-reload >/dev/null || true
	fi

}
