post_install() { printf "%s\n" \ "==> Install gateway service: openclaw gateway install --force" \ "==> Perform onboarding once: openclaw onboard" } post_upgrade() { # The gateway runs as a systemd user unit (openclaw-gateway.service in # ~/.config/systemd/user), which a root pacman hook has no session bus # to reach, so it cannot be restarted from here and keeps running the # old code until the user restarts it. printf "%s\n" \ "==> Restart the gateway to apply updates:" \ " openclaw gateway restart" \ "==> Run doctor to migrate configs, check gateway health, etc.:" \ " openclaw doctor" }