1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 09:04:12 +02:00

move redis certificates

This commit is contained in:
Robin Appelman 2026-03-09 18:30:32 +01:00
commit 80d71bd7a0
17 changed files with 18 additions and 18 deletions

View file

@ -421,16 +421,16 @@ async fn main() -> Result<ExitCode> {
);
if cloud.services().contains(&Service::RedisTls(RedisTls)) {
create_dir_all(config.work_dir.join("redis_certificates"))
create_dir_all(config.work_dir.join("certificates/redis"))
.into_diagnostic()
.wrap_err("Failed to create redis certificate directory")?;
let redis_cert_path = config.work_dir.join("redis_certificates/client.cert");
let redis_key_path = config.work_dir.join("redis_certificates/client.key");
let redis_ca_path = config.work_dir.join("redis_certificates/ca.cert");
let redis_cert_path = config.work_dir.join("certificates/redis/client.cert");
let redis_key_path = config.work_dir.join("certificates/redis/client.key");
let redis_ca_path = config.work_dir.join("certificates/redis/ca.cert");
if !redis_cert_path.exists() {
write(
&redis_cert_path,
include_bytes!("../redis-certificates/client.crt"),
include_bytes!("../certificates/redis/client.crt"),
)
.into_diagnostic()
.wrap_err("Failed to write redis client certificate")?;
@ -438,7 +438,7 @@ async fn main() -> Result<ExitCode> {
if !redis_key_path.exists() {
write(
&redis_key_path,
include_bytes!("../redis-certificates/client.key"),
include_bytes!("../certificates/redis/client.key"),
)
.into_diagnostic()
.wrap_err("Failed to write redis client key")?;
@ -446,7 +446,7 @@ async fn main() -> Result<ExitCode> {
if !redis_ca_path.exists() {
write(
&redis_ca_path,
include_bytes!("../redis-certificates/ca.crt"),
include_bytes!("../certificates/redis/ca.crt"),
)
.into_diagnostic()
.wrap_err("Failed to write redis ca certificate")?;