chore: change install dir from /opt/rx to /opt/receiptnext

This commit is contained in:
Claus Lohmar 2026-05-30 15:06:20 +00:00
parent 39fa7f6a12
commit 7fdfba8095
2 changed files with 6 additions and 6 deletions

View file

@ -20,7 +20,7 @@ sudo ./install.sh
The installer will: The installer will:
1. Clone the repo to `/opt/rx/` 1. Clone the repo to `/opt/receiptnext/`
2. Build the binary (pure Go, no CGO, no dependencies) 2. Build the binary (pure Go, no CGO, no dependencies)
3. Ask which AI provider to use: 3. Ask which AI provider to use:
@ -31,7 +31,7 @@ The installer will:
``` ```
4. Prompt for SMTP settings (for OTP emails and report delivery) 4. Prompt for SMTP settings (for OTP emails and report delivery)
5. Create `/opt/rx/.env` with all configuration 5. Create `/opt/receiptnext/.env` with all configuration
6. Set up a systemd service that auto-starts on boot 6. Set up a systemd service that auto-starts on boot
7. Start ReceiptNext 7. Start ReceiptNext
@ -42,7 +42,7 @@ The installer will:
## 🔄 Updating ## 🔄 Updating
```bash ```bash
sudo /opt/rx/install.sh -update sudo /opt/receiptnext/install.sh -update
``` ```
This pulls the latest code, rebuilds the binary, and restarts the service. This pulls the latest code, rebuilds the binary, and restarts the service.
@ -183,7 +183,7 @@ Navigate to `http://YOUR_SERVER:8080`
## 🏗️ Project Structure ## 🏗️ Project Structure
``` ```
/opt/rx/ /opt/receiptnext/
├── receiptnext # Compiled binary ├── receiptnext # Compiled binary
├── .env # Configuration ├── .env # Configuration
├── templates/ # Go HTML templates ├── templates/ # Go HTML templates

View file

@ -7,12 +7,12 @@
# sudo ./install.sh — Full install (clone, build, configure, service) # sudo ./install.sh — Full install (clone, build, configure, service)
# sudo ./install.sh -update — Pull latest, rebuild, restart # sudo ./install.sh -update — Pull latest, rebuild, restart
# #
# Installs to /opt/rx/ and sets up a systemd service. # Installs to /opt/receiptnext/ and sets up a systemd service.
# #
set -euo pipefail set -euo pipefail
INSTALL_DIR="/opt/rx" INSTALL_DIR="/opt/receiptnext"
SERVICE_NAME="receiptnext" SERVICE_NAME="receiptnext"
REPO_URL="https://git.lohmar.co.uk/cclohmar/ReceiptNext.git" REPO_URL="https://git.lohmar.co.uk/cclohmar/ReceiptNext.git"