- Try different approach to fix failing migration from 13.1.
This one is from locilka OBS-URL: https://build.opensuse.org/package/show/Base:System/netcfg?expand=0&rev=37
This commit is contained in:
parent
c1a844d087
commit
92e3252b7d
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Dec 17 10:32:15 UTC 2014 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Try different approach to fix failing migration from 13.1.
|
||||||
|
This one is from locilka
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Dec 17 10:19:29 UTC 2014 - tchvatal@suse.com
|
Wed Dec 17 10:19:29 UTC 2014 - tchvatal@suse.com
|
||||||
|
|
||||||
|
17
netcfg.spec
17
netcfg.spec
@ -79,13 +79,11 @@ ln -s %{_sysconfdir}/hostname %{buildroot}%{_sysconfdir}/HOSTNAME
|
|||||||
# REMOVE after SLE11/openSUSE-13.1 out of MIGRATION support
|
# REMOVE after SLE11/openSUSE-13.1 out of MIGRATION support
|
||||||
if [ $1 -gt 1 ]; then
|
if [ $1 -gt 1 ]; then
|
||||||
if [ -f %{_sysconfdir}/HOSTNAME -a ! -L %{_sysconfdir}/HOSTNAME ]; then
|
if [ -f %{_sysconfdir}/HOSTNAME -a ! -L %{_sysconfdir}/HOSTNAME ]; then
|
||||||
cp %{_sysconfdir}/HOSTNAME %{_sysconfdir}/hostname.rpmsave
|
cat %{_sysconfdir}/HOSTNAME > %{_sysconfdir}/hostname.rpmsave
|
||||||
rm %{_sysconfdir}/HOSTNAME
|
rm -rf %{_sysconfdir}/{HOSTNAME,hostname}
|
||||||
fi
|
cat %{_sysconfdir}/hostname.rpmsave > %{_sysconfdir}/hostname
|
||||||
# As some people are really on pills and did the link themselves other
|
rm -rf %{_sysconfdir}/hostname.rpmsave
|
||||||
# way around ensure the package will install for them.
|
ln -s hostname %{_sysconfdir}/HOSTNAME
|
||||||
if [ -f %{_sysconfdir}/hostname -a -f %{_sysconfdir}/hostname.rpmsave ]; then
|
|
||||||
rm %{_sysconfdir}/hostname
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
@ -96,11 +94,6 @@ exit 0
|
|||||||
if [ -f etc/defaultdomain.rpmnew ]; then
|
if [ -f etc/defaultdomain.rpmnew ]; then
|
||||||
rm -f etc/defaultdomain.rpmnew
|
rm -f etc/defaultdomain.rpmnew
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Put backuped HOSTNAME into the current hostname file
|
|
||||||
if [ -f %{_sysconfdir}/hostname.rpmsave ]; then
|
|
||||||
mv %{_sysconfdir}/hostname.rpmsave %{_sysconfdir}/hostname
|
|
||||||
fi
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
Loading…
Reference in New Issue
Block a user