post_install() {
  # Enable socket by default
  systemctl --global enable gcr-ssh-agent.socket
}

post_upgrade() {
  if (( $(vercmp $2 3.41.0-1) < 0)); then
    systemctl --global enable gcr-ssh-agent.socket
  fi
}

pre_remove() {
  systemctl --global disable gcr-ssh-agent.socket
}
