diff options
author | David Woodfall <dave@dawoodfall.net> | 2015-09-16 07:14:47 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-09-16 12:23:29 +0700 |
commit | bd7fbd6f34797a1dc20a585d5e6b91bef9821061 (patch) | |
tree | 636aff4592524bffc38f8167bff033812dd3b004 /system/goaccess/doinst.sh | |
parent | d33c592b0de47845f4024619305d3709da95f092 (diff) |
system/goaccess: Updated for version 0.9.4.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/goaccess/doinst.sh')
-rw-r--r-- | system/goaccess/doinst.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/system/goaccess/doinst.sh b/system/goaccess/doinst.sh new file mode 100644 index 0000000000000..07fd2e932b6e5 --- /dev/null +++ b/system/goaccess/doinst.sh @@ -0,0 +1,14 @@ +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/goaccess.conf.new |