From 6f2704d8ebf09fff0c5fb6b9b5f6279bfef71e49 Mon Sep 17 00:00:00 2001 From: Daniel Steiner Date: Fri, 22 Jul 2022 12:34:11 +0200 Subject: [PATCH] Python version is now in macro --- centos/SPECS/polemarch.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/centos/SPECS/polemarch.spec b/centos/SPECS/polemarch.spec index 4072664..9acad6b 100644 --- a/centos/SPECS/polemarch.spec +++ b/centos/SPECS/polemarch.spec @@ -10,7 +10,7 @@ %global __arch_install_post /usr/lib/rpm/check-buildroot # Macros -%define pyversion 3.8 +%define pyversion /usr/bin/python3.8 %define name polemarch %define shortname polemarch %define namebase polemarch @@ -87,8 +87,9 @@ exit 0 %post %systemd_post %{name}.service +update-alternatives --set python %{pyversion} sudo -u %{user} /opt/%{name}/bin/%{shortname}ctl migrate -update-alternatives --set python /usr/bin/python3.8 + %preun %systemd_preun %{name}.service