mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 20:47:01 +01:00
* Fixing the setup_dev_environment script * clippy calming * handle_internalunixusertokenread throwing 500's without context Fixes #1958
27 lines
850 B
Bash
Executable file
27 lines
850 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# makes sure the repos are configured because the containers are derpy sometimes
|
|
|
|
set -e
|
|
|
|
#disable the openh264 repo
|
|
if [ "$(zypper lr | grep -ci 'repo-openh264')" -eq 1 ]; then
|
|
echo "Disabling openh264 repo"
|
|
zypper mr -d -f repo-openh264
|
|
fi
|
|
|
|
# add the non-oss repo if it doesn't exist
|
|
echo "Adding the non-oss repo"
|
|
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
|