slackbuilds_ponce/system/glances/doinst.sh
Philip Lacroix 7c593e1850 system/glances: Updated for version 1.7.4.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2014-03-12 12:42:51 -05:00

11 lines
231 B
Bash

config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
rm $NEW
fi
}
config etc/glances/glances.conf.new