diff options
author | Rob van Nues | 2020-01-03 04:11:24 +0100 |
---|---|---|
committer | Robby Workman | 2020-01-03 06:33:51 +0100 |
commit | dabc3af7bff14df3c54aabbf24171beffa31907f (patch) | |
tree | 6249bfde05c64f414816208a187d6dbff326bb3c /network/onedrive/doinst.sh | |
parent | b9b78f41da53e26d0a85dc7aaead7a4cde003fea (diff) | |
download | slackbuilds-dabc3af7bff14df3c54aabbf24171beffa31907f.tar.gz |
network/onedrive: Updated for version 2.3.13.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/onedrive/doinst.sh')
-rw-r--r-- | network/onedrive/doinst.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/network/onedrive/doinst.sh b/network/onedrive/doinst.sh new file mode 100644 index 0000000000..182d35ba3a --- /dev/null +++ b/network/onedrive/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/logrotate.d/onedrive.new + |