mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 12:37:00 +01:00
* fighting weird build issues * labels are better outside * ugh that stupid linter * why do you always lint on me * neat * adding comments
23 lines
781 B
Bash
Executable file
23 lines
781 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# makes sure the repos are configured because the containers are derpy sometimes
|
|
|
|
#disable the openh264 repo
|
|
if [ "$(zypper lr | grep -ci 'repo-openh264')" -eq 1 ]; then
|
|
zypper mr -d -f -n 'repo-openh264'
|
|
fi
|
|
|
|
# add the non-oss repo if it doesn't exist
|
|
if [ "$(zypper lr | grep -c 'repo-non-oss')" -eq 0 ]; then
|
|
zypper ar -f -n 'Non-OSS' http://download.opensuse.org/tumbleweed/repo/non-oss/ repo-non-oss
|
|
fi
|
|
|
|
# update the repos and make sure the ones we want are enabled
|
|
zypper mr -k repo-oss
|
|
zypper mr -k repo-non-oss
|
|
zypper mr -k repo-update
|
|
# force the refresh because zypper is too silly to work out it needs to do it itself
|
|
zypper ref --force
|
|
# show which mirror is failing if an error occurs (otherwise zypper shows the wrong mirror url)
|
|
zypper -v dup -y
|