From a50a71b73c947bea8b2b1d0b32c793f4dc57ed34 Mon Sep 17 00:00:00 2001 From: Pierre Cazenave Date: Tue, 11 May 2010 20:01:58 +0200 Subject: system/fish: Added to 12.0 repository --- system/fish/doinst.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 system/fish/doinst.sh (limited to 'system/fish/doinst.sh') diff --git a/system/fish/doinst.sh b/system/fish/doinst.sh new file mode 100644 index 0000000000..d34cf8602d --- /dev/null +++ b/system/fish/doinst.sh @@ -0,0 +1,15 @@ +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/fish/config.fish.new + -- cgit v1.2.3