From 9de55a8d377188eb3c2d5644f84cbc0177c66a63 Mon Sep 17 00:00:00 2001 From: Niels Horn Date: Thu, 13 May 2010 01:00:50 +0200 Subject: system/hercules: Added to 13.0 repository --- system/hercules/doinst.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 system/hercules/doinst.sh (limited to 'system/hercules/doinst.sh') diff --git a/system/hercules/doinst.sh b/system/hercules/doinst.sh new file mode 100644 index 0000000000..aa581e5aa4 --- /dev/null +++ b/system/hercules/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/hercules.cnf.new + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + -- cgit v1.2.3