[Unit] Description=PBT: import the Austrian stop list into the database # Postgres runs on a separate host, so just wait for the network. Wants=network-online.target After=network-online.target [Service] Type=oneshot User=www-data WorkingDirectory=/opt/pbt # Same secrets file as pbt.service - gives the import command PBT_DATABASE_URL. EnvironmentFile=/etc/pbt/pbt.env Environment=FLASK_APP=app.py ExecStart=/opt/pbt/venv/bin/flask import-stops