distribution: set CACHE_DIRECTORY in the .service file

systemd >= 240 sets this variable to `/var/cache/` + the value of
CacheDirectory. osbuild-composer must run on earlier versions though
(specifically RHEL 8.2).
This commit is contained in:
Lars Karlitski 2020-03-03 01:46:04 +01:00 committed by David Rheinsberg
parent 9dafb3337b
commit cdcb6c2f84

View file

@ -13,5 +13,8 @@ WorkingDirectory=/usr/libexec/osbuild-composer/
User=_osbuild-composer
Restart=on-failure
# systemd >= 240 sets this, but osbuild-composer runs on earlier versions
Environment="CACHE_DIRECTORY=/var/cache/osbuild-composer"
[Install]
WantedBy=multi-user.target