Python version is now in macro
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user