import initial-setup-0.3.81.7-1.el8

This commit is contained in:
CentOS Sources 2021-03-30 12:04:21 -04:00 committed by Stepan Oksanichenko
parent 35523a7a86
commit 08bac73067
3 changed files with 9 additions and 57 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/initial-setup-0.3.81.5.tar.gz
SOURCES/initial-setup-0.3.81.7.tar.gz

View File

@ -1 +1 @@
98caebd7153a2c2fefcdd1f9f61aef07393153e9 SOURCES/initial-setup-0.3.81.5.tar.gz
09b19fad73510970aa0eb19990229acf690051b7 SOURCES/initial-setup-0.3.81.7.tar.gz

View File

@ -1,7 +1,7 @@
Summary: Initial system configuration utility
Name: initial-setup
URL: https://fedoraproject.org/wiki/InitialSetup
Version: 0.3.81.5
Version: 0.3.81.7
Release: 1%{?dist}
# This is a Red Hat maintained package which is specific to
@ -78,33 +78,6 @@ make DESTDIR=%{buildroot} install
%clean
rm -rf %{buildroot}
%pre
# There is a possibility that an initial setup service might be running
# during package upgrade, which can together with an old version
# of initial setup (<= 0.3.36) cause the rpm transaction to deadlock.
# So turn of and disable any Initial Setup services if the pre
# scriptlet is running during upgrade or package removal to prevent
# the deadlock.
# upgrade or package removal only
if [ $1 -gt 1 ] ; then
IS_GRAPHICAL="initial-setup-graphical.service"
IS_TEXT="initial-setup-text.service"
IS_GRAPHICAL_AVAILABLE=0
IS_TEXT_AVAILABLE=0
# check if the Initial Setup unit is enabled and the executable is available
systemctl is-enabled $IS_GRAPHICAL && IS_GRAPHICAL_AVAILABLE=1
systemctl is-enabled $IS_TEXT && IS_TEXT_AVAILABLE=1
if [ $IS_GRAPHICAL_AVAILABLE -eq 1 ]; then
systemctl stop $IS_GRAPHICAL
systemctl disable $IS_GRAPHICAL
fi
if [ $IS_TEXT_AVAILABLE -eq 1 ]; then
systemctl stop $IS_TEXT
systemctl disable $IS_TEXT
fi
fi
%post
%systemd_post initial-setup.service
@ -114,33 +87,6 @@ fi
%postun
%systemd_postun initial-setup.service
%pre gui
# There is a possibility that an initial setup service might be running
# during package upgrade, which can together with an old version
# of initial setup (<= 0.3.36) cause the rpm transaction to deadlock.
# So turn off and disable any Initial Setup services if the pre
# scriptlet is running during upgrade or package removal to prevent
# the deadlock.
# upgrade or package removal only
if [ $1 -gt 1 ] ; then
IS_GRAPHICAL="initial-setup-graphical.service"
IS_TEXT="initial-setup-text.service"
IS_GRAPHICAL_AVAILABLE=0
IS_TEXT_AVAILABLE=0
# check if the Initial Setup unit is enabled and the executable is available
systemctl is-enabled $IS_GRAPHICAL && IS_GRAPHICAL_AVAILABLE=1
systemctl is-enabled $IS_TEXT && IS_TEXT_AVAILABLE=1
if [ $IS_GRAPHICAL_AVAILABLE -eq 1 ]; then
systemctl stop $IS_GRAPHICAL
systemctl disable $IS_GRAPHICAL
fi
if [ $IS_TEXT_AVAILABLE -eq 1 ]; then
systemctl stop $IS_TEXT
systemctl disable $IS_TEXT
fi
fi
%files -f %{name}.lang
%doc README.rst
%license COPYING
@ -166,6 +112,12 @@ fi
%{python3_sitelib}/initial_setup/gui/*
%changelog
* Tue Nov 24 2020 Martin Kolman <mkolman@redhat.com> - 0.3.81.7-1
- Fix translations for EULA spoke related strings (mkolman)
* Fri Jul 17 2020 Martin Kolman <mkolman@redhat.com> - 0.3.81.6-1
- Remove old failing pre scriptlet (mkolman)
* Thu Jun 25 2020 Martin Kolman <mkolman@redhat.com> - 0.3.81.5-1
- Disable multi TTY handler when running in SSH session (mkolman)
- Add CLI option to disable multi TTY handler (mkolman)