diff options
Diffstat (limited to 'system/glances/doinst.sh')
-rw-r--r-- | system/glances/doinst.sh | 3 |
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 |