#!/bin/sh set -u set -e PREFIX_DIR="" # declare the Bareos repository DOWNLOADSERVER="download.bareos.org" URL="https://download.bareos.org/experimental/arogge-master-pam-mutex/EL_8" # setup credentials # (required for download.bareos.com, subscription) BAREOS_USERNAME="" BAREOS_PASSWORD="" # add the Bareos repository cat <"${PREFIX_DIR}/etc/yum.repos.d/bareos.repo" [bareos] name=Backup Archiving Recovery Open Sourced (EL_8) baseurl=${URL} username=${BAREOS_USERNAME} password=${BAREOS_PASSWORD} type=rpm-md gpgcheck=1 repo_gpgcheck=1 gpgkey=file://${PREFIX_DIR}/etc/pki/rpm-gpg/RPM-GPG-KEY-bareos-experimental autorefresh=1 enabled=1 [bareos-source] name=Backup Archiving Recovery Open Sourced (EL_8) - Sources baseurl=${URL}/src username=${BAREOS_USERNAME} password=${BAREOS_PASSWORD} type=rpm-md gpgcheck=1 repo_gpgcheck=1 gpgkey=file://${PREFIX_DIR}/etc/pki/rpm-gpg/RPM-GPG-KEY-bareos-experimental autorefresh=1 enabled=0 [bareos-debuginfo] name=Backup Archiving Recovery Open Sourced (EL_8) - Debuginfo baseurl=${URL}/debug username=${BAREOS_USERNAME} password=${BAREOS_PASSWORD} type=rpm-md gpgcheck=1 repo_gpgcheck=1 gpgkey=file://${PREFIX_DIR}/etc/pki/rpm-gpg/RPM-GPG-KEY-bareos-experimental autorefresh=1 enabled=0 EOT chmod 0640 "${PREFIX_DIR}/etc/yum.repos.d/bareos.repo" cat <"${PREFIX_DIR}/etc/pki/rpm-gpg/RPM-GPG-KEY-bareos-experimental" -----BEGIN PGP PUBLIC KEY BLOCK----- mQINBF23EK4BEAC1FADpF6aaC93bxouVT6/BuXJajjtLkHNKfY26BYuvpwgLmVwp M8vBuQWEPxxP6y2wXffv5bO/0Y1tS7tCW4i7duKz6W6as7/N13P/Mah8KOS0Zles VM94fKXX8um7okqY9EwqgWVyHetW0PVpMKCsguMezv0IUmGAi/XX/GgJBeDYWvTh S8DXtMhqWMXWv9yptJJsFQgdS0GVb8fc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