fix not checking for /usr/local/sbin.rpmmoved causing displaying errors [release 2.3-12mamba;Fri Oct 20 2023]

This commit is contained in:
Silvan Calarco 2024-01-05 22:18:26 +01:00
parent 4704809907
commit 56d7411cef

View File

@ -2,7 +2,7 @@
Name: filesystem Name: filesystem
Version: 2.3 Version: 2.3
Release: 10mamba Release: 12mamba
Summary: The basic directory layout for a Linux system Summary: The basic directory layout for a Linux system
Group: System/Configuration Group: System/Configuration
Vendor: openmamba Vendor: openmamba
@ -117,9 +117,9 @@ end
done done
} }
# /usr/sbin -> /usr/bin merge # /usr/sbin -> /usr/bin merge
[ -e /usr/sbin.rpmmoved ] && { for d in /usr/sbin /usr/local/sbin; do
echo "Migrating /usr/sbin to /usr/bin..." [ -e $d.rpmmoved ] && {
for d in /usr/sbin /usr/local/sbin; do echo "Migrating $d.rpmmoved to ${d/sbin/bin}..."
for f in $d.rpmmoved/*; do for f in $d.rpmmoved/*; do
dest="${d/sbin/bin}/`basename $f`" dest="${d/sbin/bin}/`basename $f`"
if [ -e "$dest" ]; then if [ -e "$dest" ]; then
@ -154,8 +154,8 @@ end
done done
/usr/bin/rmdir $d.rpmmoved || /usr/bin/mv $d.rpmmoved $d.notmigrated /usr/bin/rmdir $d.rpmmoved || /usr/bin/mv $d.rpmmoved $d.notmigrated
/usr/bin/ln -s bin $d /usr/bin/ln -s bin $d
done }
} done
: :
%post %post
@ -324,6 +324,12 @@ fi
/usr/tmp /usr/tmp
%changelog %changelog
* Fri Oct 20 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3-12mamba
- fix not checking for /usr/local/sbin.rpmmoved causing displaying errors
* Sun Sep 24 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3-11mamba
- bump release to retrigger a /usr/sbin migration check
* Tue Sep 05 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3-10mamba * Tue Sep 05 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3-10mamba
- attempt to solve /usr/sbin upgrade error when owning directory to symlink - attempt to solve /usr/sbin upgrade error when owning directory to symlink