diff options
Diffstat (limited to 'source/l/GConf/doinst.sh')
-rw-r--r-- | source/l/GConf/doinst.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/source/l/GConf/doinst.sh b/source/l/GConf/doinst.sh new file mode 100644 index 00000000..e5ec9380 --- /dev/null +++ b/source/l/GConf/doinst.sh @@ -0,0 +1,20 @@ +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/gconf/2/path.new +config etc/gconf/2/evoldap.conf.new + +if [ -x /usr/bin/gio-querymodules ]; then + chroot . /usr/bin/gio-querymodules @LIBDIR@/gio/modules/ >/dev/null 2>&1 +fi + |