From 326a29480bbbe2e6d0abea399ffe00170bee9417 Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Tue, 24 May 2022 11:27:21 +0200 Subject: [PATCH] Install the templates; set env var for location --- Cargo.toml | 3 ++- debian/podbringer.service | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index b11d879..acf69b7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/debian/podbringer.service b/debian/podbringer.service index ce664e3..f02b40b 100644 --- a/debian/podbringer.service +++ b/debian/podbringer.service @@ -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