From 77e7819146f3cf885905aad351c4d04841b4a967 Mon Sep 17 00:00:00 2001 From: Michal Bialozor Date: Wed, 12 May 2010 23:30:46 +0200 Subject: libraries/libvirt: Added to 12.2 repository --- libraries/libvirt/doinst.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 libraries/libvirt/doinst.sh (limited to 'libraries/libvirt/doinst.sh') diff --git a/libraries/libvirt/doinst.sh b/libraries/libvirt/doinst.sh new file mode 100644 index 0000000000..a3a7f951de --- /dev/null +++ b/libraries/libvirt/doinst.sh @@ -0,0 +1,19 @@ +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +config etc/libvirt/libvirtd.conf.new +config etc/libvirt/qemu.conf.new +config etc/libvirt/qemu/networks/default.xml.new +config etc/logrotate.d/libvirtd.new +config etc/sasl2/libvirt.conf.new + -- cgit v1.2.3