Comment out empty if clause to prevent shell error

Resolves: RHEL-58760
This commit is contained in:
Martin Osvald 2025-02-12 14:49:07 +01:00
parent 52bb578589
commit ff231a14de

View File

@ -1,7 +1,7 @@
Summary: The basic required files for the root user's directory
Name: rootfiles
Version: 8.1
Release: 33%{?dist}
Release: 34%{?dist}
License: Public Domain
# 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-34
- Comment out empty if clause to prevent shell error (RHEL-58760)
* Thu Jan 30 2025 David Tardon <dtardon@redhat.com> - 8.1-33
- Fix tmpfiles rules (RHEL-58760)