From ae0dc548aec77fa08f9c923f0c2289430558f676 Mon Sep 17 00:00:00 2001 From: glax Date: Tue, 19 Sep 2023 16:47:49 +0200 Subject: [PATCH] Changed working directory on linux to /usr/share/tranga-api Updated docker-compose to include settings-volume --- Tranga/TrangaSettings.cs | 2 +- docker-compose.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Tranga/TrangaSettings.cs b/Tranga/TrangaSettings.cs index e3aae4c..1da2d2e 100644 --- a/Tranga/TrangaSettings.cs +++ b/Tranga/TrangaSettings.cs @@ -37,7 +37,7 @@ public class TrangaSettings throw new ArgumentException("Download-location and working-directory paths can not be empty!"); this.apiPortNumber = apiPortNumber ?? 6531; this.downloadLocation = downloadLocation ?? (RuntimeInformation.IsOSPlatform(OSPlatform.Linux) ? "/Manga" : Path.Join(Directory.GetCurrentDirectory(), "Downloads")); - this.workingDirectory = workingDirectory ?? Path.Join(RuntimeInformation.IsOSPlatform(OSPlatform.Linux) ? "/var/lib" : Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "tranga-api"); + this.workingDirectory = workingDirectory ?? Path.Join(RuntimeInformation.IsOSPlatform(OSPlatform.Linux) ? "/usr/share" : Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "tranga-api"); ExportSettings(); } else diff --git a/docker-compose.yaml b/docker-compose.yaml index e8c8164..348166e 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -5,6 +5,7 @@ services: container_name: tranga-api volumes: - ./Manga:/Manga + - ./settings:/usr/share/tranga-api ports: - "6531:6531" restart: unless-stopped