!34 Remove old failing pre scriptlet
From: @chen-jan Reviewed-by: @wu-leilei Signed-off-by: @wu-leilei
This commit is contained in:
commit
209b8db790
@ -1,6 +1,6 @@
|
||||
Name: initial-setup
|
||||
Version: 0.3.83
|
||||
Release: 3
|
||||
Release: 4
|
||||
Summary: Initialize system configuration for a newly installed computer
|
||||
License: GPLv2+
|
||||
URL: https://github.com/rhinstaller/initial-setup
|
||||
@ -46,23 +46,6 @@ make test
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%pre
|
||||
if [ $1 -gt 1 ] ; then
|
||||
IS_GRAPHICAL_AVAILABLE=0
|
||||
IS_TEXT_AVAILABLE=0
|
||||
systemctl is-enabled initial-setup-graphical.service && IS_GRAPHICAL_AVAILABLE=1
|
||||
systemctl is-enabled initial-setup-text.service && IS_TEXT_AVAILABLE=1
|
||||
if [ $IS_GRAPHICAL_AVAILABLE -eq 1 ]; then
|
||||
systemctl stop initial-setup-graphical.service
|
||||
systemctl disable initial-setup-graphical.service
|
||||
fi
|
||||
if [ $IS_TEXT_AVAILABLE -eq 1 ]; then
|
||||
systemctl stop initial-setup-text.service
|
||||
systemctl disable initial-setup-text.service
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
%post
|
||||
%systemd_post %{name}.service
|
||||
|
||||
@ -84,6 +67,9 @@ fi
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Jun 12 2023 chenchen <chen_aka_jan@163.com> - 0.3.83-4
|
||||
- Remove old failing pre scriptlet
|
||||
|
||||
* Fri Dec 30 2022 xulei<xulei@xfusion.com> - 0.3.83-3
|
||||
- Add Packit support for initial-setup
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user