From 71b68523c6b940e9e4b5763c132ddce0dbb324dd Mon Sep 17 00:00:00 2001 From: Frank Caraballo Date: Thu, 13 May 2010 01:01:09 +0200 Subject: system/slim: Added to 13.0 repository --- system/slim/doinst.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 system/slim/doinst.sh (limited to 'system/slim/doinst.sh') diff --git a/system/slim/doinst.sh b/system/slim/doinst.sh new file mode 100644 index 0000000000..d419960559 --- /dev/null +++ b/system/slim/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/slim.conf.new + -- cgit v1.2.3