No description
- Python 100%
|
|
||
|---|---|---|
| .gitignore | ||
| install.py | ||
| README.md | ||
Forgejo installer
install.py is an interactive installer for the Linux amd64 Forgejo binary. It:
- Fetches the official Forgejo release feed.
- Lists releases in descending semantic-version order with their publication dates.
- Prompts for the version to install.
- Downloads that version to
/tmp/forgejoand its checksum to/tmp/forgejo.sha256. - Verifies the binary against the published SHA-256 checksum.
- Stops Forgejo, moves the binary to
/usr/local/bin/forgejo, sets its ownership and permissions, and starts Forgejo again. - Removes the downloaded files from
/tmp.
The installer requires Python 3.9 or newer and sudo. Run it with:
python3 install.py
The service is not stopped until the selected release has downloaded and passed verification. Downloaded files are cleaned up after success, cancellation, or failure. If installation fails after the service is stopped, the installer attempts to start it again.