post_install() {
  cat <<'EOF'
==> pactun ships a systemd *user* service (it is a per-user loopback proxy).

    Create a config and enable it:
      install -Dm644 /usr/share/pactun/config.example.json ~/.config/pactun/config.json
      systemctl --user daemon-reload
      systemctl --user enable --now pactun

    The web UI then runs at http://127.0.0.1:1082 and edits/hot-reloads the config.

    If you previously installed pactun with `make install`, remove that copy so
    the packaged binary and unit take over:
      rm -f ~/.local/bin/pactun ~/.local/share/systemd/user/pactun.service
      systemctl --user daemon-reload
EOF
}

post_upgrade() {
  post_install
}
