installer: accept ABS_URL/PORT as positional args, default REPO_URL

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Scarriffle
2026-06-02 20:31:23 +02:00
parent 1e2b56e863
commit 757a6fab63
2 changed files with 25 additions and 11 deletions

View File

@@ -31,14 +31,22 @@ ABS_URL=http://127.0.0.1:13378 PORT=8080 npm start
# open http://<container-ip>:8080
```
## 4. Auto-start with systemd
## 4. One-shot install + auto-start (recommended)
The installer does everything (Node, build, systemd enable/start). The ABS URL and port
are positional args (or env vars):
```bash
git clone https://git.scarriffle.com/Scarriffle/shelfless.git /opt/shelfless
cd /opt/shelfless
bash deploy/install.sh http://127.0.0.1:13378 8080
```
- 1st arg = ABS_URL (default `http://127.0.0.1:13378`)
- 2nd arg = PORT (default `8080`)
Manage it afterwards:
```bash
cp deploy/shelfless.service /etc/systemd/system/shelfless.service
# edit WorkingDirectory / ABS_URL / PORT inside the file if needed
systemctl daemon-reload
systemctl enable --now shelfless
systemctl status shelfless # check it's running
journalctl -u shelfless -f # logs
systemctl restart shelfless # restart
```
Open `http://<container-ip>:8080`. The setup screen asks only for username + password