summaryrefslogtreecommitdiff
path: root/system/glances/doinst.sh
diff options
context:
space:
mode:
authorPhilip Lacroix <philnx@bluebottle.com>2014-03-11 20:53:39 +0700
committerErik Hanson <erik@slackbuilds.org>2014-03-12 12:42:51 -0500
commit7c593e18507a92fc4f177fb587fd232e14cacdc8 (patch)
treeac263843c01392174a66e5318b7836389d7ae531 /system/glances/doinst.sh
parenta37fc6bd03f81ca48a4086530b719214283724b1 (diff)
downloadslackbuilds-7c593e18507a92fc4f177fb587fd232e14cacdc8.tar.gz
system/glances: Updated for version 1.7.4.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/glances/doinst.sh')
-rw-r--r--system/glances/doinst.sh3
1 files changed, 0 insertions, 3 deletions
diff --git a/system/glances/doinst.sh b/system/glances/doinst.sh
index 3ec38c6c20..d1bde8d89b 100644
--- a/system/glances/doinst.sh
+++ b/system/glances/doinst.sh
@@ -1,14 +1,11 @@
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/glances/glances.conf.new