change user

This commit is contained in:
2026-08-13 18:09:03 +02:00
parent 1e866c86d9
commit addb16b6b0
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -68,9 +68,9 @@ extended.
## Installation (systemd)
```bash
# 1. Create directory + user
# 1. Create directory + user (the "prometheus" system user is typically
# already present if Prometheus itself is installed on this host)
sudo mkdir -p /opt/vw-eu-data-act-exporter
sudo useradd --system --no-create-home --shell /usr/sbin/nologin vw-exporter
# 2. Copy files
sudo cp vw-eu-data-act-exporter.py config.py requirements.txt /opt/vw-eu-data-act-exporter/
@@ -83,7 +83,7 @@ sudo /opt/vw-eu-data-act-exporter/venv/bin/pip install -r /opt/vw-eu-data-act-ex
sudo nano /opt/vw-eu-data-act-exporter/config.py
# 5. Permissions (config.py contains the VW account password in plain text)
sudo chown -R vw-exporter:vw-exporter /opt/vw-eu-data-act-exporter
sudo chown -R prometheus:prometheus /opt/vw-eu-data-act-exporter
sudo chmod 600 /opt/vw-eu-data-act-exporter/config.py
# 6. Install systemd unit