mirror of
https://github.com/YunoHost-Apps/onlyoffice_ynh.git
synced 2024-09-03 19:56:11 +02:00
commit
ede04d97d2
17 changed files with 143 additions and 60 deletions
|
@ -5,4 +5,5 @@
|
|||
- [Irakurri README euskaraz](README_eu.md)
|
||||
- [Lire le README en français](README_fr.md)
|
||||
- [Le o README en galego](README_gl.md)
|
||||
- [Baca README dalam bahasa bahasa Indonesia](README_id.md)
|
||||
- [阅读中文(简体)的 README](README_zh_Hans.md)
|
||||
|
|
|
@ -5,7 +5,7 @@ It shall NOT be edited by hand.
|
|||
|
||||
# OnlyOffice for YunoHost
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/onlyoffice)  
|
||||
[](https://ci-apps.yunohost.org/ci/apps/onlyoffice/)  
|
||||
|
||||
[](https://install-app.yunohost.org/?app=onlyoffice)
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ No se debe editar a mano.
|
|||
|
||||
# OnlyOffice para Yunohost
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/onlyoffice)  
|
||||
[](https://ci-apps.yunohost.org/ci/apps/onlyoffice/)  
|
||||
|
||||
[](https://install-app.yunohost.org/?app=onlyoffice)
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ EZ editatu eskuz.
|
|||
|
||||
# OnlyOffice YunoHost-erako
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/onlyoffice)  
|
||||
[](https://ci-apps.yunohost.org/ci/apps/onlyoffice/)  
|
||||
|
||||
[](https://install-app.yunohost.org/?app=onlyoffice)
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ Il NE doit PAS être modifié à la main.
|
|||
|
||||
# OnlyOffice pour YunoHost
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/onlyoffice)  
|
||||
[](https://ci-apps.yunohost.org/ci/apps/onlyoffice/)  
|
||||
|
||||
[](https://install-app.yunohost.org/?app=onlyoffice)
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ NON debe editarse manualmente.
|
|||
|
||||
# OnlyOffice para YunoHost
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/onlyoffice)  
|
||||
[](https://ci-apps.yunohost.org/ci/apps/onlyoffice/)  
|
||||
|
||||
[](https://install-app.yunohost.org/?app=onlyoffice)
|
||||
|
||||
|
|
61
README_id.md
Normal file
61
README_id.md
Normal file
|
@ -0,0 +1,61 @@
|
|||
<!--
|
||||
N.B.: README ini dibuat secara otomatis oleh <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
|
||||
Ini TIDAK boleh diedit dengan tangan.
|
||||
-->
|
||||
|
||||
# OnlyOffice untuk YunoHost
|
||||
|
||||
[](https://ci-apps.yunohost.org/ci/apps/onlyoffice/)  
|
||||
|
||||
[](https://install-app.yunohost.org/?app=onlyoffice)
|
||||
|
||||
*[Baca README ini dengan bahasa yang lain.](./ALL_README.md)*
|
||||
|
||||
> *Paket ini memperbolehkan Anda untuk memasang OnlyOffice secara cepat dan mudah pada server YunoHost.*
|
||||
> *Bila Anda tidak mempunyai YunoHost, silakan berkonsultasi dengan [panduan](https://yunohost.org/install) untuk mempelajari bagaimana untuk memasangnya.*
|
||||
|
||||
## Ringkasan
|
||||
|
||||
ONLYOFFICE Document Server is an online office suite comprising viewers and editors for texts, spreadsheets and presentations, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
|
||||
|
||||
Online collaborative edition of ONLYOFFICE documents requires:
|
||||
1. a server part, with two installation options:
|
||||
1. ONLYOFFICE Document Server packaged for YunoHost.
|
||||
2. The [Community Document Server for Nextcloud](https://apps.nextcloud.com/apps/documentserver_community)
|
||||
|
||||
2. a client part, such as:
|
||||
1. The [ONLYOFFICE connector for Nextcloud](https://apps.nextcloud.com/apps/onlyoffice)
|
||||
2. The [ONLYOFFICE Desktop Editors](https://www.onlyoffice.com/fr/download-desktop.aspx)
|
||||
|
||||
A solution made easy by YunoHost is to install (1.i) and (2.i), see [section below](https://github.com/YunoHost-Apps/onlyoffice_ynh/#configuration-of-onlyoffice-server). The Nextcloud addicts may follow [this tutorial](https://github.com/YunoHost-Apps/nextcloud_ynh#configure-onlyoffice-integration) to install (1.ii) and (2.i) on one Nextcloud instance. However, performance and architecture are limited.
|
||||
|
||||
|
||||
**Versi terkirim:** 8.0.1~ynh2
|
||||
|
||||
**Demo:** <https://www.onlyoffice.com/fr/download-desktop.aspx>
|
||||
|
||||
## Tangkapan Layar
|
||||
|
||||

|
||||

|
||||
|
||||
## Dokumentasi dan sumber daya
|
||||
|
||||
- Website aplikasi resmi: <https://www.onlyoffice.com>
|
||||
- Depot kode aplikasi hulu: <https://github.com/ONLYOFFICE/DocumentServer>
|
||||
- Gudang YunoHost: <https://apps.yunohost.org/app/onlyoffice>
|
||||
- Laporkan bug: <https://github.com/YunoHost-Apps/onlyoffice_ynh/issues>
|
||||
|
||||
## Info developer
|
||||
|
||||
Silakan kirim pull request ke [`testing` branch](https://github.com/YunoHost-Apps/onlyoffice_ynh/tree/testing).
|
||||
|
||||
Untuk mencoba branch `testing`, silakan dilanjutkan seperti:
|
||||
|
||||
```bash
|
||||
sudo yunohost app install https://github.com/YunoHost-Apps/onlyoffice_ynh/tree/testing --debug
|
||||
atau
|
||||
sudo yunohost app upgrade onlyoffice -u https://github.com/YunoHost-Apps/onlyoffice_ynh/tree/testing --debug
|
||||
```
|
||||
|
||||
**Info lebih lanjut mengenai pemaketan aplikasi:** <https://yunohost.org/packaging_apps>
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
# YunoHost 上的 OnlyOffice
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/onlyoffice)  
|
||||
[](https://ci-apps.yunohost.org/ci/apps/onlyoffice/)  
|
||||
|
||||
[](https://install-app.yunohost.org/?app=onlyoffice)
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ location __PATH__/ {
|
|||
proxy_set_header Upgrade $http_upgrade;
|
||||
#proxy_set_header Connection $proxy_connection;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header X-Forwarded-Host $server_name__PATH_NO_SLASH__;
|
||||
proxy_set_header X-Forwarded-Host $server_name;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_redirect off;
|
||||
|
|
|
@ -32,11 +32,6 @@ ram.runtime = "800M"
|
|||
[install.domain]
|
||||
type = "domain"
|
||||
|
||||
# Subpath doesn't work anymore?
|
||||
# [install.path]
|
||||
# type = "path"
|
||||
# default = "/onlyoffice"
|
||||
|
||||
[install.init_main_permission]
|
||||
help.en = "You will only be able to connect OnlyOffice to Nextcloud if both apps are public!"
|
||||
help.fr = "Nextcloud et OnlyOffice doivent être des applications publiques si vous voulez les connecter !"
|
||||
|
@ -74,17 +69,15 @@ ram.runtime = "800M"
|
|||
"libcurl4-openssl-dev",
|
||||
]
|
||||
|
||||
# Manual install in scripts
|
||||
# [resources.apt.extras.ttf]
|
||||
# repo = "deb http://deb.debian.org/debian/ bullseye main contrib"
|
||||
# key = "https://ftp-master.debian.org/keys/release-bullseye.asc"
|
||||
# packages = ["ttf-mscorefonts-installer"]
|
||||
|
||||
# Manual install in scripts
|
||||
# [resources.apt.extras.onlyoffice]
|
||||
# repo = "https://download.onlyoffice.com/repo/debian squeeze main"
|
||||
# key = "https://download.onlyoffice.com/GPG-KEY-ONLYOFFICE"
|
||||
# packages = "onlyoffice-documentserver"
|
||||
[resources.sources.main]
|
||||
amd64.url = "https://github.com/ONLYOFFICE/DocumentServer/releases/download/v8.0.1/onlyoffice-documentserver_amd64.deb"
|
||||
amd64.sha256 = "82b2e59ff7d3064a2d35614be7669bec88735f0837dac786762f7ba6a595cff3"
|
||||
arm64.url = "https://github.com/ONLYOFFICE/DocumentServer/releases/download/v8.0.1/onlyoffice-documentserver_arm64.deb"
|
||||
arm64.sha256 = "3fe98049dc483b04f9deeaa935795c49ff6086649d7d51a4a8e67e2f1a7c6093"
|
||||
rename = "onlyoffice-documentserver.deb"
|
||||
autoupdate.asset.amd64 = "^onlyoffice-documentserver_amd64.deb$"
|
||||
autoupdate.asset.arm64 = "^onlyoffice-documentserver_arm64.deb$"
|
||||
autoupdate.strategy = "latest_github_release"
|
||||
|
||||
[resources.database]
|
||||
type = "postgresql"
|
||||
|
|
|
@ -32,15 +32,9 @@ _install_onlyoffice_deb() {
|
|||
# the install/configure of their package, which is awful since that will
|
||||
# restart NGINX and the whole webadmin and maybe even the YunoHost command
|
||||
# running the install...
|
||||
|
||||
# Do not replace app dependencies
|
||||
YNH_INSTALL_APP_DEPENDENCIES_REPLACE="false"
|
||||
|
||||
# Can't do that in the manifest because we need the debconf-set-selections and postgresql already configured
|
||||
ynh_exec_warn_less ynh_install_extra_app_dependencies \
|
||||
--repo="https://download.onlyoffice.com/repo/debian squeeze main" \
|
||||
--key="https://download.onlyoffice.com/GPG-KEY-ONLYOFFICE" \
|
||||
--package="onlyoffice-documentserver"
|
||||
|
||||
ynh_setup_source --dest_dir="$install_dir"
|
||||
ynh_package_install $install_dir/onlyoffice-documentserver.deb
|
||||
}
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -14,22 +14,14 @@ source /usr/share/yunohost/helpers
|
|||
ynh_print_info --message="Declaring files to be backed up..."
|
||||
|
||||
#=================================================
|
||||
# BACKUP THE SYSTEM CONFIGURATION
|
||||
# SYSTEM CONFIGURATION
|
||||
#=================================================
|
||||
|
||||
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||
|
||||
#=================================================
|
||||
# SPECIFIC BACKUP
|
||||
#=================================================
|
||||
|
||||
ynh_backup --src_path="/etc/onlyoffice"
|
||||
ynh_backup --src_path="/var/lib/onlyoffice/documentserver/App_Data/cache/files" --not_mandatory
|
||||
|
||||
#=================================================
|
||||
# BACKUP VARIOUS FILES
|
||||
#=================================================
|
||||
|
||||
ynh_backup --src_path="/var/log/$app/"
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -50,17 +50,27 @@ chmod 750 "$install_dir"
|
|||
chmod -R o-rwx "$install_dir"
|
||||
chown -R ds:ds "$install_dir"
|
||||
|
||||
#=================================================
|
||||
# ADVERTISE SERVICE IN ADMIN PANEL
|
||||
#=================================================
|
||||
|
||||
for service in "ds-converter" "ds-docservice" "ds-metrics"; do
|
||||
yunohost service add "$service"
|
||||
done
|
||||
|
||||
#=================================================
|
||||
# START SERVICES
|
||||
#=================================================
|
||||
|
||||
for service in "ds-converter" "ds-docservice" "ds-metrics"; do
|
||||
ynh_systemd_action --action=restart --service_name="$service"
|
||||
done
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
#=================================================
|
||||
ynh_script_progression --message="Configuring NGINX web server..."
|
||||
|
||||
if [ $path = "/" ]; then
|
||||
path_no_slash=""
|
||||
else
|
||||
path_no_slash="$path"
|
||||
fi
|
||||
|
||||
# Create a dedicated NGINX config
|
||||
ynh_add_nginx_config
|
||||
|
||||
|
|
|
@ -7,6 +7,17 @@
|
|||
source _common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
# REMOVE SERVICE FROM ADMIN PANEL
|
||||
#=================================================
|
||||
|
||||
for service in "ds-converter" "ds-docservice" "ds-metrics"; do
|
||||
if yunohost service status "$service" >/dev/null 2>&1
|
||||
then
|
||||
yunohost service remove "$service"
|
||||
fi
|
||||
done
|
||||
|
||||
#=================================================
|
||||
# REMOVE ONLYOFFICE
|
||||
#=================================================
|
||||
|
@ -25,8 +36,6 @@ ynh_package_autopurge onlyoffice-documentserver
|
|||
|
||||
dpkg --configure -a
|
||||
|
||||
apt-key del "E09C A29F 6E17 8040 EF22 B409 8320 CA65 CB2D E8E5" 2>/dev/null
|
||||
|
||||
#=================================================
|
||||
# REMOVE SYSTEM CONFIGURATIONS
|
||||
#=================================================
|
||||
|
@ -43,9 +52,6 @@ ynh_remove_nginx_config
|
|||
ynh_secure_remove --file="/etc/onlyoffice"
|
||||
ynh_secure_remove --file="/var/lib/onlyoffice"
|
||||
|
||||
# Remove the log files
|
||||
ynh_secure_remove --file="/var/log/$app"
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
#=================================================
|
||||
|
|
|
@ -59,6 +59,22 @@ ynh_script_progression --message="Restoring system configurations related to $ap
|
|||
|
||||
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||
|
||||
#=================================================
|
||||
# ADVERTISE SERVICE IN ADMIN PANEL
|
||||
#=================================================
|
||||
|
||||
for service in "ds-converter" "ds-docservice" "ds-metrics"; do
|
||||
yunohost service add "$service"
|
||||
done
|
||||
|
||||
#=================================================
|
||||
# START SERVICES
|
||||
#=================================================
|
||||
|
||||
for service in "ds-converter" "ds-docservice" "ds-metrics"; do
|
||||
ynh_systemd_action --action=restart --service_name="$service"
|
||||
done
|
||||
|
||||
#=================================================
|
||||
# RELOAD NGINX
|
||||
#=================================================
|
||||
|
|
|
@ -55,17 +55,27 @@ chmod 750 "$install_dir"
|
|||
chmod -R o-rwx "$install_dir"
|
||||
chown -R ds:ds "$install_dir"
|
||||
|
||||
#=================================================
|
||||
# ADVERTISE SERVICE IN ADMIN PANEL
|
||||
#=================================================
|
||||
|
||||
for service in "ds-converter" "ds-docservice" "ds-metrics"; do
|
||||
yunohost service add "$service"
|
||||
done
|
||||
|
||||
#=================================================
|
||||
# START SERVICES
|
||||
#=================================================
|
||||
|
||||
for service in "ds-converter" "ds-docservice" "ds-metrics"; do
|
||||
ynh_systemd_action --action=restart --service_name="$service"
|
||||
done
|
||||
|
||||
#=================================================
|
||||
# REAPPLY SYSTEM CONFIGURATIONS
|
||||
#=================================================
|
||||
ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1
|
||||
|
||||
if [ $path = "/" ]; then
|
||||
path_no_slash=""
|
||||
else
|
||||
path_no_slash="$path"
|
||||
fi
|
||||
|
||||
# Create a dedicated NGINX config
|
||||
ynh_add_nginx_config
|
||||
|
||||
|
|
|
@ -8,8 +8,8 @@ test_format = 1.0
|
|||
|
||||
exclude = ["change_url"]
|
||||
|
||||
[default.test_upgrade_from.205cc12c26b46c57ba8459f449e835949be44096]
|
||||
name = "7.3.3~ynh1"
|
||||
[default.test_upgrade_from.6fad960ef104f0d96ebd38c3577330efd2c4ed57]
|
||||
name = "8.0.1~ynh1"
|
||||
args.domain = "domain.tld"
|
||||
args.path = "/"
|
||||
args.nextclouddomain = "nextcloud.tld"
|
||||
|
|
Loading…
Add table
Reference in a new issue