Install the templates; set env var for location

This commit is contained in:
Paul van Tilburg 2022-05-24 11:27:21 +02:00
parent 8afd4b17ba
commit 326a29480b
Signed by: paul
GPG Key ID: C6DE073EDA9EEC4D
2 changed files with 3 additions and 1 deletions

View File

@ -35,7 +35,8 @@ priority = "optional"
assets = [
["README.md", "usr/share/doc/podbringer/", "664"],
["Rocket.toml.example", "/etc/podbringer.toml", "644"],
["target/release/podbringer", "usr/sbin/podbringer", "755"]
["target/release/podbringer", "usr/sbin/podbringer", "755"],
["templates/*", "usr/share/podbringer/templates", "755"]
]
conf-files = [
"/etc/podbringer.toml"

View File

@ -40,6 +40,7 @@ StartLimitInterval=1m
StartLimitBurst=5
Environment="ROCKET_CONFIG=/etc/podbringer.toml"
Environment="ROCKET_TEMPLATE_DIR=/usr/share/podbringer/templates"
[Install]
WantedBy=multi-user.target