From 33d92bec37331cfb22489f0c08264c079654663e Mon Sep 17 00:00:00 2001 From: Enderson Isai Date: Sat, 27 Jul 2024 07:57:08 -0400 Subject: [PATCH 1/2] add onlyoffice --- install/desktop/app-onlyoffice.sh | 13 +++++++++++++ uninstall/app-onlyoffice.sh | 7 +++++++ 2 files changed, 20 insertions(+) create mode 100644 install/desktop/app-onlyoffice.sh create mode 100644 uninstall/app-onlyoffice.sh diff --git a/install/desktop/app-onlyoffice.sh b/install/desktop/app-onlyoffice.sh new file mode 100644 index 00000000..dedf81b8 --- /dev/null +++ b/install/desktop/app-onlyoffice.sh @@ -0,0 +1,13 @@ +# https://helpcenter.onlyoffice.com/installation/desktop-install-ubuntu.aspx + +# add repository +mkdir -p -m 700 ~/.gnupg +gpg --no-default-keyring --keyring gnupg-ring:/tmp/onlyoffice.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5 +chmod 644 /tmp/onlyoffice.gpg +sudo chown root:root /tmp/onlyoffice.gpg +sudo mv /tmp/onlyoffice.gpg /usr/share/keyrings/onlyoffice.gpg +echo 'deb [signed-by=/usr/share/keyrings/onlyoffice.gpg] https://download.onlyoffice.com/repo/debian squeeze main' | sudo tee -a /etc/apt/sources.list.d/onlyoffice.list + +# install +sudo apt update +sudo apt install -y onlyoffice-desktopeditors diff --git a/uninstall/app-onlyoffice.sh b/uninstall/app-onlyoffice.sh new file mode 100644 index 00000000..83a33336 --- /dev/null +++ b/uninstall/app-onlyoffice.sh @@ -0,0 +1,7 @@ +# uninstall onlyoffice +sudo apt purge -y onlyoffice-desktopeditors + +# remove repo +sudo rm /usr/share/keyrings/onlyoffice.gpg +sudo rm /etc/apt/sources.list.d/onlyoffice.list +sudo rm /etc/apt/sources.list.d/onlyoffice.list.save From 1372830254dbd2c64b9b157a8c10fe594180f5a7 Mon Sep 17 00:00:00 2001 From: Enderson Isai Date: Thu, 8 Aug 2024 01:56:18 -0400 Subject: [PATCH 2/2] error-proof uninstaller --- uninstall/app-onlyoffice.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/uninstall/app-onlyoffice.sh b/uninstall/app-onlyoffice.sh index 83a33336..ec4735aa 100644 --- a/uninstall/app-onlyoffice.sh +++ b/uninstall/app-onlyoffice.sh @@ -1,7 +1,6 @@ # uninstall onlyoffice sudo apt purge -y onlyoffice-desktopeditors -# remove repo -sudo rm /usr/share/keyrings/onlyoffice.gpg -sudo rm /etc/apt/sources.list.d/onlyoffice.list -sudo rm /etc/apt/sources.list.d/onlyoffice.list.save +# remove repository +sudo rm -f /etc/apt/sources.list.d/onlyoffice.list +sudo rm -f /usr/share/keyrings/onlyoffice.gpg