commit iscsitarget for openSUSE:Factory
![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community, here is the log from the commit of package iscsitarget for openSUSE:Factory checked in at 2013-04-14 10:15:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/iscsitarget (Old) and /work/SRC/openSUSE:Factory/.iscsitarget.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "iscsitarget", Maintainer is "hare@suse.com" Changes: -------- --- /work/SRC/openSUSE:Factory/iscsitarget/iscsitarget.changes 2013-01-24 10:44:21.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.iscsitarget.new/iscsitarget.changes 2013-04-14 10:15:40.000000000 +0200 @@ -1,0 +2,6 @@ +Tue Mar 26 19:21:40 PDT 2013 - lduncan@suse.com + +- added post-install spec-file script to ensure user config-file + changes not lost (bnc#811533) + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ iscsitarget.spec ++++++ --- /var/tmp/diff_new_pack.mOZ2vQ/_old 2013-04-14 10:15:42.000000000 +0200 +++ /var/tmp/diff_new_pack.mOZ2vQ/_new 2013-04-14 10:15:42.000000000 +0200 @@ -105,12 +105,32 @@ %post %{fillup_and_insserv -f iscsitarget} %{fillup_and_insserv -i -n ietd} +# make sure we do not loose previous user config +if [ -f /etc/ietd.conf ] && \ + egrep -qv '^[[:space:]]*(#.*|)$' /etc/ietd.conf ; then + # old config file has user modifications + if [ -f /etc/iet/ietd.conf ] && \ + egrep -qv '^[[:space:]]*(#.*|)$' /etc/iet/ietd.conf ; then + # new file has modification as well + echo "Two ietd.conf files found. Check /etc/ietd.conf.save" + mv -f /etc/ietd.conf /etc/ietd.conf.save + else + # move old config file to new location + mv -f /etc/iet/ietd.conf /etc/iet/ietd.conf.installed + mv -f /etc/ietd.conf /etc/iet/ietd.conf + fi +else + # old config file is missing or empty -- make sure it is gone + rm -f /etc/ietd.conf +fi +ln -sf /etc/iet/ietd.conf /etc/ietd.conf %preun %stop_on_removal iscsitarget %postun %{insserv_cleanup} +[ -L /etc/ietd.conf ] && rm -f /etc/ietd.conf %files %attr(755,root,root)/usr/sbin/* -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@hilbert.suse.de