diff options
author | Rodrigo Gimenez <estrod@zoho.com> | 2017-05-26 14:03:43 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-05-27 07:31:09 +0700 |
commit | 2f1f6e643488807c94a1b2c4f5f45bca5e2768fc (patch) | |
tree | c32c101db30cd7d7d4af462cebe118b5153edbfa /network/nextcloud-client/doinst.sh | |
parent | 0317563f374e762314099b1a55e69ecfdf84b390 (diff) | |
download | slackbuilds-2f1f6e643488807c94a1b2c4f5f45bca5e2768fc.tar.gz |
network/nextcloud-client: Added (Nextcloud Desktop Client).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/nextcloud-client/doinst.sh')
-rw-r--r-- | network/nextcloud-client/doinst.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/network/nextcloud-client/doinst.sh b/network/nextcloud-client/doinst.sh new file mode 100644 index 0000000000..bb8462acaa --- /dev/null +++ b/network/nextcloud-client/doinst.sh @@ -0,0 +1,24 @@ +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/Nextcloud/sync-exclude.lst.new" + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi |