distribution: deprecate osbuild-composer-koji.socket

Instead, call it osbuild-composer-api.socket, but provide a symlink for
backwards compatibility. Change `schutzbot/provision.sh` to only enable
osbuild-composer-api.socket.

In the future, this new socket is the only API socket, which provides
both the "cloud" API and the one for koji.

This means that the koji API is always enabled.
This commit is contained in:
Lars Karlitski 2020-10-02 19:11:23 +02:00 committed by Ondřej Budai
parent d5a22097b8
commit 835b556db7
5 changed files with 20 additions and 23 deletions

View file

@ -77,9 +77,9 @@ func main() {
log.Fatalf("osbuild-composer.socket doesn't exist")
}
if l, exists := listeners["osbuild-composer-koji.socket"]; exists {
if l, exists := listeners["osbuild-composer-api.socket"]; exists {
if len(l) != 1 {
log.Fatal("The osbuild-composer-koji.socket unit is misconfigured. It should contain only one socket.")
log.Fatal("The osbuild-composer-api.socket unit is misconfigured. It should contain only one socket.")
}
err = composer.InitKoji(ServerCertFile, ServerKeyFile, l[0])