#!/bin/sh

EULA() {
  cat <<-EOM
	 > By installing this package you acknowledge that you agree to the End-User
	 > License Agreement (EULA) found in /usr/share/doc/omnissa-horizon-client/.
	 > If you do not agree to Omnissa EULA remove this package immediately:
	 >  $ pacman -Rc omnissa-horizon-client
	EOM
}

hosts_remove() {
  sed -i '/view-localhost/d' /etc/hosts
}

post_install() {
  EULA
}

post_upgrade() {
  hosts_remove
}

post_remove() {
  hosts_remove
}
