diff --git a/src/onlyoffice/install-service.sh b/src/onlyoffice/install-service.sh index ae1018b..46d0202 100644 --- a/src/onlyoffice/install-service.sh +++ b/src/onlyoffice/install-service.sh @@ -14,6 +14,12 @@ ONLYOFFICE_DB_PASS=$(random_password) apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5 echo "deb https://download.onlyoffice.com/repo/debian squeeze main" > /etc/apt/sources.list.d/onlyoffice.list +cat > /etc/apt/preferences.d/onlyoffice << EOF +Package: onlyoffice-documentserver +Pin: version 7.1.1-23 +Pin-Priority: 900 +EOF + apt update DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt install -y -qq postgresql rabbitmq-server libstdc++6 supervisor @@ -73,4 +79,4 @@ cat << EOF > /etc/apt/apt.conf.d/80-ods-apt-post-hook DPkg::Post-Invoke {"/usr/local/bin/ods-apt-post-hook";}; EOF -systemctl restart nginx \ No newline at end of file +systemctl restart nginx