Skip to content

Commit 2552d87

Browse files
szaimenenoch85
andauthored
remotedesktop - fix installation on Ubuntu 22.04 and higher (#2500)
Signed-off-by: Simon L <[email protected]> Co-authored-by: Daniel Hansson <[email protected]>
1 parent e1247d3 commit 2552d87

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

not-supported/remotedesktop.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,13 @@ This can set your server under risk, though!" "$SUBTITLE"
343343
if yesno_box_yes "Do you want to install OnlyOffice Desktop Editors nonetheless?" "$SUBTITLE"
344344
then
345345
print_text_in_color "$ICyan" "Installing $SUBTITLE"
346-
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5
347-
echo "deb https://download.onlyoffice.com/repo/debian squeeze main" \
348-
> /etc/apt/sources.list.d/onlyoffice-desktopeditors.list
346+
# From https://helpcenter.onlyoffice.com/installation/desktop-install-ubuntu.aspx
347+
mkdir -p ~/.gnupg
348+
gpg --no-default-keyring --keyring gnupg-ring:/tmp/onlyoffice.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5
349+
chmod 644 /tmp/onlyoffice.gpg
350+
chown root:root /tmp/onlyoffice.gpg
351+
mv /tmp/onlyoffice.gpg /usr/share/keyrings/onlyoffice.gpg
352+
echo "deb [signed-by=/usr/share/keyrings/onlyoffice.gpg] https://download.onlyoffice.com/repo/debian squeeze main" > "/etc/apt/sources.list.d/onlyoffice-desktopeditors.list"
349353
apt-get update -q4 & spinner_loading
350354
install_if_not onlyoffice-desktopeditors
351355
print_text_in_color "$ICyan" "$SUBTITLE was successfully installed"

0 commit comments

Comments
 (0)