- Remove the socket check from the defaultdomain checker as it was
always false and thus not needed - Add comment explaining the reason for the code OBS-URL: https://build.opensuse.org/package/show/Base:System/netcfg?expand=0&rev=32
This commit is contained in:
parent
5a80679417
commit
6cfb9c1674
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 1 16:26:03 UTC 2014 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Remove the socket check from the defaultdomain checker as it was
|
||||||
|
always false and thus not needed
|
||||||
|
- Add comment explaining the reason for the code
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Dec 1 16:22:22 UTC 2014 - tchvatal@suse.com
|
Mon Dec 1 16:22:22 UTC 2014 - tchvatal@suse.com
|
||||||
|
|
||||||
|
@ -90,7 +90,12 @@ if [ "0$1" -ge "2" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%post
|
%post
|
||||||
test -f etc/defaultdomain.rpmnew -a ! -s etc/defaultdomain.rpmnew && rm -f etc/defaultdomain.rpmnew
|
# If the defaultdomain changed just prune it, user is not interested in
|
||||||
|
# 0 size file anyway
|
||||||
|
if test -f etc/defaultdomain.rpmnew; then
|
||||||
|
rm -f etc/defaultdomain.rpmnew
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -f /etc/HOSTNAME.rpmsave -a ! -L /etc/HOSTNAME.rpmsave ]; then
|
if [ -f /etc/HOSTNAME.rpmsave -a ! -L /etc/HOSTNAME.rpmsave ]; then
|
||||||
cp -a /etc/HOSTNAME.rpmsave /etc/hostname
|
cp -a /etc/HOSTNAME.rpmsave /etc/hostname
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user