refactor(post-boot): remove archup-cli installation step
archup-cli will never be installed post-boot — the install model is barebone or Dank Linux only. Remove the archup-cli.sh script, drop it from all.sh, and remove it from the PostBootScripts slice in config.go.
- commit
- 1d039875faa0c717a68849f5e4b60618b6c0fbac
- author
- brice · · 2026-03-13 06:38 UTC
- parent
- 055de8d
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
3 files · +0 -58
M install/mandatory/post-boot/all.sh +0 -10
| @@ -60,16 +60,6 @@ if [ -f /usr/local/share/archup/post-boot/ssh-keygen.sh ]; then | |||
| 60 | 60 | fi | |
| 61 | 61 | fi | |
| 62 | 62 | ||
| 63 | - | # Install archup-cli from GitHub | |
| 64 | - | if [ -f /usr/local/share/archup/post-boot/archup-cli.sh ]; then | |
| 65 | - | echo "Installing archup-cli from GitHub..." >> "$LOG_FILE" | |
| 66 | - | if bash /usr/local/share/archup/post-boot/archup-cli.sh >> "$LOG_FILE" 2>&1; then | |
| 67 | - | echo "[OK] archup-cli installed successfully" >> "$LOG_FILE" | |
| 68 | - | else | |
| 69 | - | echo "[KO] archup-cli installation failed (non-critical)" >> "$LOG_FILE" | |
| 70 | - | fi | |
| 71 | - | fi | |
| 72 | - | ||
| 73 | 63 | # Install ble.sh (Bash Line Editor) | |
| 74 | 64 | if [ -f /usr/local/share/archup/post-boot/blesh.sh ]; then | |
| 75 | 65 | echo "Installing ble.sh (Bash Line Editor)..." >> "$LOG_FILE" | |
| @@ -60,16 +60,6 @@ if [ -f /usr/local/share/archup/post-boot/ssh-keygen.sh ]; then | |||||
| 60 | fi | 60 | fi | ||
| 61 | fi | 61 | fi | ||
| 62 | 62 | ||||
| 63 | - | # Install archup-cli from GitHub | |||
| 64 | - | if [ -f /usr/local/share/archup/post-boot/archup-cli.sh ]; then | |||
| 65 | - | echo "Installing archup-cli from GitHub..." >> "$LOG_FILE" | |||
| 66 | - | if bash /usr/local/share/archup/post-boot/archup-cli.sh >> "$LOG_FILE" 2>&1; then | |||
| 67 | - | echo "[OK] archup-cli installed successfully" >> "$LOG_FILE" | |||
| 68 | - | else | |||
| 69 | - | echo "[KO] archup-cli installation failed (non-critical)" >> "$LOG_FILE" | |||
| 70 | - | fi | |||
| 71 | - | fi | |||
| 72 | - | ||||
| 73 | # Install ble.sh (Bash Line Editor) | 63 | # Install ble.sh (Bash Line Editor) | ||
| 74 | if [ -f /usr/local/share/archup/post-boot/blesh.sh ]; then | 64 | if [ -f /usr/local/share/archup/post-boot/blesh.sh ]; then | ||
| 75 | echo "Installing ble.sh (Bash Line Editor)..." >> "$LOG_FILE" | 65 | echo "Installing ble.sh (Bash Line Editor)..." >> "$LOG_FILE" | ||
D install/mandatory/post-boot/archup-cli.sh +0 -47
| @@ -1,47 +0,0 @@ | |||
| 1 | - | #!/bin/bash | |
| 2 | - | # Build and install archup-cli using go install | |
| 3 | - | ||
| 4 | - | set -e | |
| 5 | - | ||
| 6 | - | GITHUB_REPO="bnema/archup-cli" | |
| 7 | - | ||
| 8 | - | echo "=== Installing archup-cli ===" | |
| 9 | - | ||
| 10 | - | # Check if Go is installed | |
| 11 | - | if ! command -v go &> /dev/null; then | |
| 12 | - | echo "ERROR: Go is not installed. Cannot install archup-cli." | |
| 13 | - | exit 1 | |
| 14 | - | fi | |
| 15 | - | ||
| 16 | - | # Get latest release tag from GitHub | |
| 17 | - | echo "Fetching latest release from GitHub..." | |
| 18 | - | LATEST_RELEASE=$(curl -s "https://api.github.com/repos/${GITHUB_REPO}/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/') | |
| 19 | - | ||
| 20 | - | if [ -z "$LATEST_RELEASE" ]; then | |
| 21 | - | echo "WARNING: No releases found, installing from main branch" | |
| 22 | - | VERSION="@latest" | |
| 23 | - | else | |
| 24 | - | echo "Latest release: $LATEST_RELEASE" | |
| 25 | - | VERSION="@${LATEST_RELEASE}" | |
| 26 | - | fi | |
| 27 | - | ||
| 28 | - | # Install using go install (installs to $GOBIN or $GOPATH/bin or ~/go/bin) | |
| 29 | - | echo "Installing archup-cli ${VERSION}..." | |
| 30 | - | go install "github.com/${GITHUB_REPO}${VERSION}" | |
| 31 | - | ||
| 32 | - | # Determine where the binary was installed | |
| 33 | - | GOBIN="${GOBIN:-$(go env GOPATH)/bin}" | |
| 34 | - | BINARY_PATH="${GOBIN}/archup-cli" | |
| 35 | - | ||
| 36 | - | # Verify installation | |
| 37 | - | if [ -x "$BINARY_PATH" ]; then | |
| 38 | - | echo "[OK] archup-cli installed successfully" | |
| 39 | - | echo " Location: $BINARY_PATH" | |
| 40 | - | echo " Version: $($BINARY_PATH --version 2>/dev/null || echo 'unknown')" | |
| 41 | - | echo "" | |
| 42 | - | echo "To update in the future, run:" | |
| 43 | - | echo " go install github.com/${GITHUB_REPO}@latest" | |
| 44 | - | else | |
| 45 | - | echo "ERROR: Installation failed" | |
| 46 | - | exit 1 | |
| 47 | - | fi | |
| @@ -1,47 +0,0 @@ | |||||
| 1 | - | #!/bin/bash | |||
| 2 | - | # Build and install archup-cli using go install | |||
| 3 | - | ||||
| 4 | - | set -e | |||
| 5 | - | ||||
| 6 | - | GITHUB_REPO="bnema/archup-cli" | |||
| 7 | - | ||||
| 8 | - | echo "=== Installing archup-cli ===" | |||
| 9 | - | ||||
| 10 | - | # Check if Go is installed | |||
| 11 | - | if ! command -v go &> /dev/null; then | |||
| 12 | - | echo "ERROR: Go is not installed. Cannot install archup-cli." | |||
| 13 | - | exit 1 | |||
| 14 | - | fi | |||
| 15 | - | ||||
| 16 | - | # Get latest release tag from GitHub | |||
| 17 | - | echo "Fetching latest release from GitHub..." | |||
| 18 | - | LATEST_RELEASE=$(curl -s "https://api.github.com/repos/${GITHUB_REPO}/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/') | |||
| 19 | - | ||||
| 20 | - | if [ -z "$LATEST_RELEASE" ]; then | |||
| 21 | - | echo "WARNING: No releases found, installing from main branch" | |||
| 22 | - | VERSION="@latest" | |||
| 23 | - | else | |||
| 24 | - | echo "Latest release: $LATEST_RELEASE" | |||
| 25 | - | VERSION="@${LATEST_RELEASE}" | |||
| 26 | - | fi | |||
| 27 | - | ||||
| 28 | - | # Install using go install (installs to $GOBIN or $GOPATH/bin or ~/go/bin) | |||
| 29 | - | echo "Installing archup-cli ${VERSION}..." | |||
| 30 | - | go install "github.com/${GITHUB_REPO}${VERSION}" | |||
| 31 | - | ||||
| 32 | - | # Determine where the binary was installed | |||
| 33 | - | GOBIN="${GOBIN:-$(go env GOPATH)/bin}" | |||
| 34 | - | BINARY_PATH="${GOBIN}/archup-cli" | |||
| 35 | - | ||||
| 36 | - | # Verify installation | |||
| 37 | - | if [ -x "$BINARY_PATH" ]; then | |||
| 38 | - | echo "[OK] archup-cli installed successfully" | |||
| 39 | - | echo " Location: $BINARY_PATH" | |||
| 40 | - | echo " Version: $($BINARY_PATH --version 2>/dev/null || echo 'unknown')" | |||
| 41 | - | echo "" | |||
| 42 | - | echo "To update in the future, run:" | |||
| 43 | - | echo " go install github.com/${GITHUB_REPO}@latest" | |||
| 44 | - | else | |||
| 45 | - | echo "ERROR: Installation failed" | |||
| 46 | - | exit 1 | |||
| 47 | - | fi | |||
M internal/config/config.go +0 -1
| @@ -126,7 +126,6 @@ var PostBootScripts = []string{ | |||
| 126 | 126 | "snapper.sh", | |
| 127 | 127 | "firewalld.sh", | |
| 128 | 128 | "ssh-keygen.sh", | |
| 129 | - | "archup-cli.sh", | |
| 130 | 129 | "blesh.sh", | |
| 131 | 130 | "cli-tools.sh", | |
| 132 | 131 | "dms-opt-in.sh", | |
| @@ -126,7 +126,6 @@ var PostBootScripts = []string{ | |||||
| 126 | "snapper.sh", | 126 | "snapper.sh", | ||
| 127 | "firewalld.sh", | 127 | "firewalld.sh", | ||
| 128 | "ssh-keygen.sh", | 128 | "ssh-keygen.sh", | ||
| 129 | - | "archup-cli.sh", | |||
| 130 | "blesh.sh", | 129 | "blesh.sh", | ||
| 131 | "cli-tools.sh", | 130 | "cli-tools.sh", | ||
| 132 | "dms-opt-in.sh", | 131 | "dms-opt-in.sh", | ||