feat: show version on startup and in setup.sh output
This commit is contained in:
parent
82a28c6101
commit
f299f7f895
3 changed files with 4 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -13,3 +13,4 @@ bin/
|
|||
wallarm-upx
|
||||
bin/
|
||||
wallarm-linux-amd64
|
||||
deploy
|
||||
|
|
|
|||
|
|
@ -293,6 +293,7 @@ deployment. On subsequent runs, it shows your existing deployments.
|
|||
|
||||
// ── Default: preflight → TUI wizard/dashboard ────────────────
|
||||
fmt.Println("═══ Wallarm Deployment Manager ═══")
|
||||
fmt.Printf(" version %s\n", version)
|
||||
fmt.Println()
|
||||
|
||||
// 1. Preflight checks (always run on start)
|
||||
|
|
|
|||
3
setup.sh
3
setup.sh
|
|
@ -87,7 +87,8 @@ rm -rf "${SOURCE_DIR}"/*
|
|||
cp -r cmd internal go.mod go.sum "${SOURCE_DIR}/" 2>/dev/null || true
|
||||
|
||||
echo
|
||||
echo -e "${GREEN}${BOLD}Ready!${NC}"
|
||||
V=$("${WALLARM_DIR}/deploy" --version 2>/dev/null || echo "unknown")
|
||||
echo -e "${GREEN}${BOLD}Ready!${NC} (${V})"
|
||||
echo
|
||||
echo -e " ${CYAN}sudo /opt/wallarm/deploy${NC} — Start the TUI"
|
||||
echo -e " ${CYAN}/opt/wallarm/deploy --help${NC} — Show commands"
|
||||
|
|
|
|||
Loading…
Reference in a new issue