I'm writing an Ansible role to upgrade our Github Enterprise installation. During the upgrade, Github reboots the server, and once it recovers, it resumes installation. Is there a way via CLI command to check if the status of the upgrade process after the reboot?
Yes. If you SSH to your GitHub Enterprise appliance, you can use the following command to get an upgrade status:
sudo tail -f /data/user/common/ghe-config.log
If you have other questions about upgrading GitHub Enterprise, I recommend reaching out to GitHub Enterprise support directly so that they can help you more effectively.
Thanks. I should've been clearer in my question. I meant to ask "How can I tell when the upgrade is done? And then how can I tell if the upgrade passed or failed?" I viewed that log and see an entry that says "0000 came up ok!" and "0001 came up ok!" I should just grep for those? If so this doesn't seem future-proof since log messages can change.
The final message saying that everything came up okay should be "Done!" Any errors during the upgrade will be marked with "ERROR".
Here's what Github support suggested, and I like this better.