made some metadata of the program dynamic

This commit is contained in:
Hazel Noack
2025-07-16 16:25:22 +02:00
parent 0b7de76874
commit 68c89de1a4
7 changed files with 17 additions and 7 deletions

View File

@@ -10,6 +10,7 @@ import (
"os"
"path/filepath"
"gitea.elara.ws/Hazel/transfem-startpage/internal/utils"
"github.com/labstack/echo/v4"
)
@@ -23,7 +24,7 @@ func getCacheDir() (string, error) {
if err != nil {
baseDir = "/tmp"
}
cacheDir := filepath.Join(baseDir, "startpage")
cacheDir := filepath.Join(baseDir, utils.Name)
err = os.MkdirAll(cacheDir, 0o755)
if err != nil {
return "", err