Skip to content
Unverified Commit 7eb963f3 authored by Frank Schreiner's avatar Frank Schreiner
Browse files

[dist] fix for upgrade obs-api 2.9 to 2.10

From 2.9 to 2.10 obsapidelayed.service changed to
obs-api-support.target. The restart and enabling of obs-api-support.target
was tried in the post script. This is to late as the obsapidelayed.service
is already deinstalled at this point and the systemctl command will return
an error.

This change ensures that "systemctl is-enabled/is-active" will be executed
in the %pre section while upgrading the package and the state will be stored
files in the %_run_dir. In the %post section we check for this files and
try to enable/start obs-api-support.target.

NEEDS BACKPORT TO 2.10
parent 10e6c649
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment