From: Frank Brehm Date: Fri, 1 Apr 2022 13:41:52 +0000 (+0200) Subject: Trying to fix package build in stage develop X-Git-Tag: 0.4.1^2~4 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=d11aa6d0672a69c378625d056454f45da391ea17;p=pixelpark%2Fpp-admin-tools.git Trying to fix package build in stage develop --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e540928..31fbfff 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -171,13 +171,14 @@ Linter: before_script: - ls -lA --color=always /etc/yum.repos.d - | - echo "Manipulating repo files in CentOS 8 ..." - if [[ "${EL_MAJOR_VERSION}" -ge "7" ]] ; then + if [[ "${EL_MAJOR_VERSION}" -ge "8" ]] ; then + echo "Manipulating repo files in CentOS 8 ..." for repo_file in /etc/yum.repos.d/CentOS-Linux*.repo ; do - echo - echo "Changing ${repo_file} ..." - sed -i -e 's/^mirrorlist/# mirrorlist/' -e 's/^#[ ]*baseurl/baseurl/' "${repo_file}" - cat "${repo_file}" + if [[ -f "${repo_file}" ]] ; then + echo -e "\nChanging ${repo_file} ..." + sed -i -e 's/^mirrorlist/# mirrorlist/' -e 's/^#[ ]*baseurl[ ]*=/baseurl=/' "${repo_file}" + cat "${repo_file}" + fi done fi - ${YUM} clean all