diff --git a/install.sh b/install.sh index 6ef3b69..f2ba240 100755 --- a/install.sh +++ b/install.sh @@ -76,8 +76,8 @@ if [ "${1:-}" = "-update" ]; then TAG=$(curl -fsSL https://git.lohmar.co.uk/api/v1/repos/cclohmar/ReceiptNext/releases/latest \ | python3 -c "import json,sys; print(json.load(sys.stdin).get('tag_name','v1.0.0'))" 2>/dev/null || echo "v1.0.0") ARCH="$(uname -m)"; [ "$ARCH" = "x86_64" ] && ARCH="amd64"; [ "$ARCH" = "aarch64" ] && ARCH="arm64" - sudo_if curl -fsSL -o app .https://git.lohmar.co.uk/cclohmar/ReceiptNext/releases/download/${TAG}/app-linux-${ARCH}" - sudo_if chmod +x receiptnext + sudo_if curl -fsSL -o app "https://git.lohmar.co.uk/cclohmar/ReceiptNext/releases/download/${TAG}/app-linux-${ARCH}" + sudo_if chmod +x app fi info "Restarting service..." @@ -128,10 +128,10 @@ else TAG=$(curl -fsSL https://git.lohmar.co.uk/api/v1/repos/cclohmar/ReceiptNext/releases/latest \ | python3 -c "import json,sys; print(json.load(sys.stdin).get('tag_name','v1.0.0'))" 2>/dev/null || echo "v1.0.0") URL="https://git.lohmar.co.uk/cclohmar/ReceiptNext/releases/download/${TAG}/app-linux-${ARCH}" - sudo_if curl -fsSL -o app .$URL" - sudo_if chmod +x receiptnext + sudo_if curl -fsSL -o app "$URL" + sudo_if chmod +x app fi -info "Binary ready: $INSTALL_DIR/app +info "Binary ready: $INSTALL_DIR/app" # ── 3. Create runtime directories ──────────────────────────────── sudo_if mkdir -p storage @@ -349,7 +349,7 @@ echo " ║ Installation Complete! ║" echo " ╚═══════════════════════════════════════╝" echo "" echo " Install: $INSTALL_DIR" -echo " Binary: $INSTALL_DIR/receiptnext" +echo " Binary: $INSTALL_DIR/app" echo " Config: $INSTALL_DIR/.env" echo " Templates: $INSTALL_DIR/templates/" echo " Static: $INSTALL_DIR/static/"