post_install() {
  if ! grep -q '^air:' /var/log/air &> /dev/null ; then
    groupadd air
  fi

  chown -R root:air /var/log/air 

  if [[ -p /usr/share/air/air-fifo ]]; then
    chown -R root:air /usr/share/air/air-fifo
  fi

  echo "Add yourself to the 'air' group to use this."
}

post_upgrade() {
  post_install
}

post_remove() {
  groupdel air
}
