This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Homeserver bring-back-online installer. | |
| # Run once at the physical console (monitor+keyboard) after login as `herbert`: | |
| # curl -fsSL http://localhost:3000 >/dev/null # sanity — should return HTML | |
| # sudo bash ~/homeserver-recover.sh | |
| # | |
| # What this script does: | |
| # 1. Fixes SSH hang (UseDNS no) so remote SSH auth returns in <1s. | |
| # 2. Installs pushn-notify.sh + boot/shutdown systemd units. | |
| # 3. Enables the units and confirms with a test push. |