6
0
Fork 0

Import __onlyoffice_document_server type from dot-cdist

This commit is contained in:
Timothée Floure 2021-01-13 16:34:34 +01:00
parent ecd5398710
commit 610a91e6ef
Signed by: tfloure
GPG key ID: 4502C902C00A1E12
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,36 @@
#!/bin/sh
#
# Please refer to
# https://helpcenter.onlyoffice.com/installation/docs-community-install-ubuntu.aspx
# for details.
os=$(cat "${__global:?}/explorer/os")
case "$os" in
debian|ubuntu)
__apt_key onlyoffice \
--keyserver hkp://keyserver.ubuntu.com:80 \
--keyid CB2DE8E5
require="__apt_key/onlyoffice" __apt_source onlyoffice \
--uri "https://download.onlyoffice.com/repo/debian" \
--distribution squeeze \
--component main
__package postgresql
require="__package/postgresql" __postgres_role onlyoffice \
--login --password 'onlyoffice'
require="__postgres_role/onlyoffice" __postgres_database onlyoffice \
--owner onlyoffice
__package nginx-extras
__package rabbitmq-server
require="__apt_source/onlyoffice __postgres_database/onlyoffice \
__package/nginx-extras __package/rabbitmq-server" __package \
onlyoffice-documentserver
;;
*)
echo "$os is not supported by this type. Exiting" >&2
exit 1
;;
esac