Install the templates; set env var for location
This commit is contained in:
parent
8afd4b17ba
commit
326a29480b
|
@ -35,7 +35,8 @@ priority = "optional"
|
||||||
assets = [
|
assets = [
|
||||||
["README.md", "usr/share/doc/podbringer/", "664"],
|
["README.md", "usr/share/doc/podbringer/", "664"],
|
||||||
["Rocket.toml.example", "/etc/podbringer.toml", "644"],
|
["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 = [
|
conf-files = [
|
||||||
"/etc/podbringer.toml"
|
"/etc/podbringer.toml"
|
||||||
|
|
1
debian/podbringer.service
vendored
1
debian/podbringer.service
vendored
|
@ -40,6 +40,7 @@ StartLimitInterval=1m
|
||||||
StartLimitBurst=5
|
StartLimitBurst=5
|
||||||
|
|
||||||
Environment="ROCKET_CONFIG=/etc/podbringer.toml"
|
Environment="ROCKET_CONFIG=/etc/podbringer.toml"
|
||||||
|
Environment="ROCKET_TEMPLATE_DIR=/usr/share/podbringer/templates"
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in a new issue