Install the templates; set env var for location
This commit is contained in:
parent
8afd4b17ba
commit
326a29480b
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue