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..ec4735aa --- /dev/null +++ b/uninstall/app-onlyoffice.sh @@ -0,0 +1,6 @@ +# uninstall onlyoffice +sudo apt purge -y onlyoffice-desktopeditors + +# remove repository +sudo rm -f /etc/apt/sources.list.d/onlyoffice.list +sudo rm -f /usr/share/keyrings/onlyoffice.gpg