dnf-json: make cachedir mandatory
Without passing in a cachedir, dnf would create a random one for every invocation. This meant that caches were never reused, nor cleaned up properly. Let systemd create a cache directory for us in /var/cache/ and use that via the environment variable systemd sets for us. Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
parent
8b7b592bd2
commit
44c03cf61e
3 changed files with 8 additions and 5 deletions
|
|
@ -7,6 +7,7 @@ Wants=osbuild-worker@1.service
|
|||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/libexec/osbuild-composer/osbuild-composer
|
||||
CacheDirectory=osbuild-composer
|
||||
StateDirectory=osbuild-composer
|
||||
WorkingDirectory=/usr/libexec/osbuild-composer/
|
||||
User=_osbuild-composer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue