Skip to content

Conversation

byt3farm
Copy link

  • added detection and warning when script is running as sudo/root because installationscript might fail when ran as root due to PATH issues
  • echo detected/found current go version with exact path to go binary for clarity
  • add architecture string "arm64"
  • cpu architecture detection simplyfied; no redundant wget and tar commands; case construct instead of if/elif/else
  • fix: go does not provide any extra binaries for armv7l architecture; need to use compatible armv6l binariesas fallback instead
  • print the detected unsupported architecture before script exit
  • print output detected architecture and resulted archive file/url to be downloaded
  • exit script with error message on wget download error
  • remove downloaded archive file after archive extraction
  • set go version back to 1.21.5 because install BeeGo v2 (go install github.com/beego/bee/v2@develop) would fail due to multiple build errors with the newer go version 1.22.3
  • Cloning qrencode, check if path already exists to avoid git clone fatal error when already cloned

byt3farm added 6 commits July 16, 2025 00:30
…ause installationscript might fail when ran as root due to PATH issues

- add architecture string "arm64"
- cpu architecture detection simplyfied; no redundant wget and tar commands; use case construct  instead of if/elif/else
- echo detected/found current go version with exact path to go binary for clarity
- fix golang does not provide binaries for armv7l and use compatible armv6l binariesas fallback instead
- print output the detected unsupported architecture version before script exit
- print output detected architecture and resulted archive file/url to be downloaded
- exit script with error message on wget download error
- remove downloaded archive file after archive extraction
- set go version back to 1.21.5 because install BeeGo v2 (go install github.com/beego/bee/v2@develop) would fail due to multiple build errors with the newer go version 1.22.3
- Cloning qrencode, check if path already exists to avoid git clone fatal error when already cloned
#

# All the variables
GOVERSION="1.22.3"
GOVERSION="1.21.5"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should match the go version from the latest release version, instead of downgrading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants