Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.2.14 #54

Merged
merged 1 commit into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/build-rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ jobs:
- name: Get linupdate version
run: echo "VERSION=$(cat ${GITHUB_WORKSPACE}/version)" >> $GITHUB_ENV

- name: Install CentOS7 archive repositories
run: |
rm -f /etc/yum.repos.d/*.repo
cp ${GITHUB_WORKSPACE}/.github/workflows/packaging/rpm/centos-archive-repos/*.repo /etc/yum.repos.d/
yum clean all

- name: Install dependencies packages
run: yum install rpmdevtools rpmlint -y

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[extras]
name=extras repo
comment=extras repo
baseurl=https://vault.centos.org/7.9.2009/extras/x86_64/
enabled=1
gpgkey=https://vault.centos.org/RPM-GPG-KEY-CentOS-7
gpgcheck=1
7 changes: 7 additions & 0 deletions .github/workflows/packaging/rpm/centos-archive-repos/os.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[os]
name=os repo
comment=os repo
baseurl=https://vault.centos.org/7.9.2009/os/x86_64/
enabled=1
gpgkey=https://vault.centos.org/RPM-GPG-KEY-CentOS-7
gpgcheck=1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[updates]
name=updates repo
comment=updates repo
baseurl=https://vault.centos.org/7.9.2009/updates/x86_64/
enabled=1
gpgkey=https://vault.centos.org/RPM-GPG-KEY-CentOS-7
gpgcheck=1
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ jobs:
- name: Get linupdate version
run: echo "VERSION=$(cat ${GITHUB_WORKSPACE}/version)" >> $GITHUB_ENV

- name: Install CentOS7 archive repositories
run: |
rm -f /etc/yum.repos.d/*.repo
cp ${GITHUB_WORKSPACE}/.github/workflows/packaging/rpm/centos-archive-repos/*.repo /etc/yum.repos.d/
yum clean all

- name: Install dependencies packages
run: yum install rpmdevtools rpmlint -y

Expand Down Expand Up @@ -163,9 +169,9 @@ jobs:
tag_name: ${{ env.VERSION }}
release_name: ${{ env.VERSION }}
body: |
**Fixes**:
**Changes**:

- **reposerver** module: fixed missing reposerver IP address in the configuration file
- Added compatibility for Oracle Linux OS (@Starbix #53)
draft: false
prerelease: false

Expand Down
6 changes: 2 additions & 4 deletions mods-available/reposerver.mod
Original file line number Diff line number Diff line change
Expand Up @@ -1011,10 +1011,8 @@ function post

# Si il y a eu des paquets à mettre à jour lors de cette exécution alors on exécute les actions suivantes
if [ "$SOMETHING_TO_UPDATE" == "true" ];then
# Généralement les paquets "*-release" sur Redhat/CentOS remettent en place des fichiers .repo. Si un paquet de ce type a été mis à jour alors on remets à jour la configuration des repos à partir du serveurs de repo (profils), si cela est autorisé des deux côtés
if echo "${PACKAGES[*]}" | grep -q "-release";then
getProfileRepos
fi
# Généralement les paquets "*-release" sur Redhat/CentOS remettent en place des fichiers .repo. Du coup on remet à jour la configuration des repos à partir du serveurs de repo (profils), si cela est autorisé des deux côtés
getProfileRepos

# On renvoie les 4 derniers historique d'évènements au serveur reposerver
/opt/linupdate/linupdate --mod-configure reposerver --from-agent --send-full-history 4
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.13
2.2.14
Loading