test/cross-distro: remove repo overrides and force restart composer
Completely remove the /etc/osbuild-composer/repositories directory used for repo overrides, to ensure that only repos from the RPM are used. Moreover, instead of trying to restart osbuild-composer, which is always a tricky thing to do, let's just stop all services and call the Weldr API. Since the service is socket-activated, this will start all the necessary services. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
987da06136
commit
d90399c260
1 changed files with 3 additions and 3 deletions
|
|
@ -62,11 +62,11 @@ echo "====> Starting $(basename "$0")"
|
|||
# Remove repo overrides installed by provision.sh, these will show up in the
|
||||
# list and cause it to fail and are not needed since this test doesn't build
|
||||
# anything.
|
||||
sudo rm -f /etc/osbuild-composer/repositories/*
|
||||
sudo systemctl try-restart osbuild-composer
|
||||
sudo rm -rf /etc/osbuild-composer/repositories
|
||||
sudo systemctl stop 'osbuild*.service'
|
||||
sudo composer-cli status show
|
||||
|
||||
echo "Repository directories:"
|
||||
ls -lR /etc/osbuild-composer/repositories/
|
||||
ls -lR /usr/share/osbuild-composer/repositories/
|
||||
|
||||
echo "Repositories installed by the rpm:"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue