diff options
author | Andrew Payne <phalange@komputermatrix.com> | 2022-04-02 12:47:47 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-04-02 18:19:11 +0700 |
commit | ac93b128fcc618626e6ec5893d6ee89b8c334983 (patch) | |
tree | 4d3bc66a87d65e1d37e534ec6895efa489d5dff0 /network/nextcloud-desktop/doinst.sh | |
parent | 65ed12bfa0b4214d175c19ec59841fb45898dbf1 (diff) | |
download | slackbuilds-ac93b128fcc618626e6ec5893d6ee89b8c334983.tar.gz |
network/nextcloud-desktop: Added (Nextcloud Desktop Client).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/nextcloud-desktop/doinst.sh')
-rw-r--r-- | network/nextcloud-desktop/doinst.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/network/nextcloud-desktop/doinst.sh b/network/nextcloud-desktop/doinst.sh new file mode 100644 index 0000000000..bb8462acaa --- /dev/null +++ b/network/nextcloud-desktop/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 |