Remove old failing pre scriptlet
This commit is contained in:
parent
40059ff255
commit
7d37ec1565
@ -1,6 +1,6 @@
|
|||||||
Name: initial-setup
|
Name: initial-setup
|
||||||
Version: 0.3.83
|
Version: 0.3.83
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Initialize system configuration for a newly installed computer
|
Summary: Initialize system configuration for a newly installed computer
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: https://github.com/rhinstaller/initial-setup
|
URL: https://github.com/rhinstaller/initial-setup
|
||||||
@ -42,22 +42,6 @@ make test
|
|||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
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
|
%post
|
||||||
%systemd_post %{name}.service
|
%systemd_post %{name}.service
|
||||||
|
|
||||||
@ -78,6 +62,9 @@ fi
|
|||||||
%config %{_sysconfdir}/%{name}/conf.d/*
|
%config %{_sysconfdir}/%{name}/conf.d/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Dec 14 2021 wangkai<wangkai385@huawei.com> - 0.3.83-2
|
||||||
|
- Remove old failing pre scriptlet
|
||||||
|
|
||||||
* Wed Dec 01 2021 sunguoshuai<sunguoshuai@huawei.com> - 0.3.83-1
|
* Wed Dec 01 2021 sunguoshuai<sunguoshuai@huawei.com> - 0.3.83-1
|
||||||
- Upgrade to 0.3.83
|
- Upgrade to 0.3.83
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user