Add install.sh and fix service unit placeholder

- scripts/install.sh: one-command hardened deploy (creates the water-monitor
  system user, deploys to /opt, builds a uv-managed venv, installs and enables
  the systemd unit). Idempotent; excludes .env/*.db/stations.json from sync so
  runtime state is preserved.
- Fix placeholder Documentation= URL in water-monitor.service.
- README: document the script as the primary systemd install path, with manual
  steps kept as a fallback.
This commit is contained in:
2026-07-22 12:55:17 +07:00
parent 4bc3d82773
commit ab8a10dd75
3 changed files with 121 additions and 7 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[Unit]
Description=Thailand Water Level Monitor
Documentation=https://github.com/your-username/thailand-water-monitor
Documentation=https://git.b4l.co.th/B4L/Northern-Thailand-Ping-River-Monitor
After=network.target
Wants=network-online.target