Comment out empty if clause to prevent shell error
Resolves: RHEL-76497
This commit is contained in:
parent
4216822f14
commit
04705e3899
@ -1,7 +1,7 @@
|
||||
Summary: The basic required files for the root user's directory
|
||||
Name: rootfiles
|
||||
Version: 8.1
|
||||
Release: 40%{?dist}
|
||||
Release: 41%{?dist}
|
||||
License: LicenseRef-Not-Copyrightable
|
||||
|
||||
# This is a Red Hat maintained package which is specific to
|
||||
@ -37,13 +37,13 @@ for file in %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} ; do
|
||||
done
|
||||
|
||||
%posttrans
|
||||
if [ $1 -eq 0 ] ; then
|
||||
#if [ $1 -eq 0 ] ; then
|
||||
#copy recursively the content, but do not overwrite the original files provided by rootfiles package
|
||||
# NOTE: This has been broken by the conversion to tmpfiles. I see only one way to make it
|
||||
# work: to synthetize a tmpfiles entry for each of these additional files/dirs. That seems like
|
||||
# a lot of effort to continue supporting a feature for which there's likely not a high demand...
|
||||
# cp -ndr --preserve=ownership,timestamps /etc/skel/. %{ROOTFILES_DIR}/ || :
|
||||
fi
|
||||
#fi
|
||||
|
||||
%files
|
||||
%dir %{ROOTFILES_DIR}
|
||||
@ -56,6 +56,9 @@ fi
|
||||
%ghost /root/.tcshrc
|
||||
|
||||
%changelog
|
||||
* Wed Feb 12 2025 Martin Osvald <mosvald@redhat.com> - 8.1-41
|
||||
- Comment out empty if clause to prevent shell error (RHEL-76497)
|
||||
|
||||
* Thu Jan 30 2025 David Tardon <dtardon@redhat.com> - 8.1-40
|
||||
- Fix tmpfiles rules (RHEL-76497)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user