https://bugzilla.novell.com/show_bug.cgi?id=883999 https://bugzilla.novell.com/show_bug.cgi?id=883999#c5 --- Comment #5 from Petr Gajdos <pgajdos@suse.com> 2014-06-27 10:30:13 UTC --- Standa Brabec suggested yesterday: %pre if [ "0$1" -ge "2" ]; then if [ -f /etc/HOSTNAME -a ! -h /etc/HOSTNAME ]; then mv /etc/HOSTNAME /etc/HOSTNAME.rpmsave fi if [ -h /etc/hostname ]; then rm /etc/hostname fi if [ -f /etc/hostname ]; then touch /etc/hostname.stamp fi fi %post if [ -f /etc/HOSTNAME.rpmsave ]; then if [ -f /etc/hostname.stamp ]; then rm /etc/hostname.stamp if cmp -s /etc/hostname /etc/HOSTNAME.rpmsave; then rm /etc/HOSTNAME.rpmsave else echo "/etc/hostname and /etc/HOSTNAME conflicted before installation" >&2 echo "/etc/hostname saved into /etc/hostname.rpmsave" >&2 mv /etc/hostname /etc/hostname.rpmsave mv /etc/HOSTNAME.rpmsave /etc/hostname fi else mv /etc/hostname /etc/hostname.rpmnew mv /etc/HOSTNAME.rpmsave /etc/hostname fi else # should not happen rm /etc/hostname.stamp fi -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.