mirror of
https://github.com/YunoHost-Apps/chitchatter_ynh.git
synced 2024-09-03 18:15:59 +02:00
commit
c081834d4c
12 changed files with 284 additions and 60 deletions
8
ALL_README.md
Normal file
8
ALL_README.md
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
# All available README files by language
|
||||||
|
|
||||||
|
- [Read the README in English](README.md)
|
||||||
|
- [Lea el README en español](README_es.md)
|
||||||
|
- [Irakurri README euskaraz](README_eu.md)
|
||||||
|
- [Lire le README en français](README_fr.md)
|
||||||
|
- [Le o README en galego](README_gl.md)
|
||||||
|
- [阅读中文(简体)的 README](README_zh_Hans.md)
|
26
README.md
26
README.md
|
@ -1,5 +1,5 @@
|
||||||
<!--
|
<!--
|
||||||
N.B.: This README was automatically generated by https://github.com/YunoHost/apps/tree/master/tools/README-generator
|
N.B.: This README was automatically generated by <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
|
||||||
It shall NOT be edited by hand.
|
It shall NOT be edited by hand.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
@ -9,10 +9,10 @@ It shall NOT be edited by hand.
|
||||||
|
|
||||||
[](https://install-app.yunohost.org/?app=chitchatter)
|
[](https://install-app.yunohost.org/?app=chitchatter)
|
||||||
|
|
||||||
*[Lire ce readme en français.](./README_fr.md)*
|
*[Read this README in other languages.](./ALL_README.md)*
|
||||||
|
|
||||||
> *This package allows you to install Chitchatter quickly and simply on a YunoHost server.
|
> *This package allows you to install Chitchatter quickly and simply on a YunoHost server.*
|
||||||
If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/install) to learn how to install it.*
|
> *If you don't have YunoHost, please consult [the guide](https://yunohost.org/install) to learn how to install it.*
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
|
@ -27,9 +27,9 @@ Chitchatter is a free (as in both price and freedom) communication tool. It is d
|
||||||
- Ephemeral
|
- Ephemeral
|
||||||
- Decentralized
|
- Decentralized
|
||||||
|
|
||||||
**Shipped version:** 1.0~ynh10
|
**Shipped version:** 1.0~ynh11
|
||||||
|
|
||||||
**Demo:** https://chitchatter.im/
|
**Demo:** <https://chitchatter.im/>
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
|
@ -37,18 +37,18 @@ Chitchatter is a free (as in both price and freedom) communication tool. It is d
|
||||||
|
|
||||||
## Documentation and resources
|
## Documentation and resources
|
||||||
|
|
||||||
* Official app website: <https://chitchatter.im/>
|
- Official app website: <https://chitchatter.im/>
|
||||||
* Upstream app code repository: <https://github.com/jeremyckahn/chitchatter>
|
- Upstream app code repository: <https://github.com/jeremyckahn/chitchatter>
|
||||||
* YunoHost Store: <https://apps.yunohost.org/app/chitchatter>
|
- YunoHost Store: <https://apps.yunohost.org/app/chitchatter>
|
||||||
* Report a bug: <https://github.com/YunoHost-Apps/chitchatter_ynh/issues>
|
- Report a bug: <https://github.com/YunoHost-Apps/chitchatter_ynh/issues>
|
||||||
|
|
||||||
## Developer info
|
## Developer info
|
||||||
|
|
||||||
Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/chitchatter_ynh/tree/testing).
|
Please send your pull request to the [`testing` branch](https://github.com/YunoHost-Apps/chitchatter_ynh/tree/testing).
|
||||||
|
|
||||||
To try the testing branch, please proceed like that.
|
To try the `testing` branch, please proceed like that:
|
||||||
|
|
||||||
``` bash
|
```bash
|
||||||
sudo yunohost app install https://github.com/YunoHost-Apps/chitchatter_ynh/tree/testing --debug
|
sudo yunohost app install https://github.com/YunoHost-Apps/chitchatter_ynh/tree/testing --debug
|
||||||
or
|
or
|
||||||
sudo yunohost app upgrade chitchatter -u https://github.com/YunoHost-Apps/chitchatter_ynh/tree/testing --debug
|
sudo yunohost app upgrade chitchatter -u https://github.com/YunoHost-Apps/chitchatter_ynh/tree/testing --debug
|
||||||
|
|
57
README_es.md
Normal file
57
README_es.md
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
<!--
|
||||||
|
Este archivo README esta generado automaticamente<https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
|
||||||
|
No se debe editar a mano.
|
||||||
|
-->
|
||||||
|
|
||||||
|
# Chitchatter para Yunohost
|
||||||
|
|
||||||
|
[](https://dash.yunohost.org/appci/app/chitchatter)  
|
||||||
|
|
||||||
|
[](https://install-app.yunohost.org/?app=chitchatter)
|
||||||
|
|
||||||
|
*[Leer este README en otros idiomas.](./ALL_README.md)*
|
||||||
|
|
||||||
|
> *Este paquete le permite instalarChitchatter rapidamente y simplement en un servidor YunoHost.*
|
||||||
|
> *Si no tiene YunoHost, visita [the guide](https://yunohost.org/install) para aprender como instalarla.*
|
||||||
|
|
||||||
|
## Descripción general
|
||||||
|
|
||||||
|
Chitchatter is a free (as in both price and freedom) communication tool. It is designed with security and privacy in mind.
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
- Fully open source (licensed under GPL v2)
|
||||||
|
- Peer-to-peer
|
||||||
|
- Encrypted (via WebRTC)
|
||||||
|
- Serverless
|
||||||
|
- Ephemeral
|
||||||
|
- Decentralized
|
||||||
|
|
||||||
|
**Versión actual:** 1.0~ynh11
|
||||||
|
|
||||||
|
**Demo:** <https://chitchatter.im/>
|
||||||
|
|
||||||
|
## Capturas
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## Documentaciones y recursos
|
||||||
|
|
||||||
|
- Sitio web oficial: <https://chitchatter.im/>
|
||||||
|
- Repositorio del código fuente oficial de la aplicación : <https://github.com/jeremyckahn/chitchatter>
|
||||||
|
- Catálogo YunoHost: <https://apps.yunohost.org/app/chitchatter>
|
||||||
|
- Reportar un error: <https://github.com/YunoHost-Apps/chitchatter_ynh/issues>
|
||||||
|
|
||||||
|
## Información para desarrolladores
|
||||||
|
|
||||||
|
Por favor enviar sus correcciones a la [`branch testing`](https://github.com/YunoHost-Apps/chitchatter_ynh/tree/testing
|
||||||
|
|
||||||
|
Para probar la rama `testing`, sigue asÍ:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo yunohost app install https://github.com/YunoHost-Apps/chitchatter_ynh/tree/testing --debug
|
||||||
|
o
|
||||||
|
sudo yunohost app upgrade chitchatter -u https://github.com/YunoHost-Apps/chitchatter_ynh/tree/testing --debug
|
||||||
|
```
|
||||||
|
|
||||||
|
**Mas informaciones sobre el empaquetado de aplicaciones:** <https://yunohost.org/packaging_apps>
|
57
README_eu.md
Normal file
57
README_eu.md
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
<!--
|
||||||
|
Ohart ongi: README hau automatikoki sortu da <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>ri esker
|
||||||
|
EZ editatu eskuz.
|
||||||
|
-->
|
||||||
|
|
||||||
|
# Chitchatter YunoHost-erako
|
||||||
|
|
||||||
|
[](https://dash.yunohost.org/appci/app/chitchatter)  
|
||||||
|
|
||||||
|
[](https://install-app.yunohost.org/?app=chitchatter)
|
||||||
|
|
||||||
|
*[Irakurri README hau beste hizkuntzatan.](./ALL_README.md)*
|
||||||
|
|
||||||
|
> *Pakete honek Chitchatter YunoHost zerbitzari batean azkar eta zailtasunik gabe instalatzea ahalbidetzen dizu.*
|
||||||
|
> *YunoHost ez baduzu, kontsultatu [gida](https://yunohost.org/install) nola instalatu ikasteko.*
|
||||||
|
|
||||||
|
## Aurreikuspena
|
||||||
|
|
||||||
|
Chitchatter is a free (as in both price and freedom) communication tool. It is designed with security and privacy in mind.
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
- Fully open source (licensed under GPL v2)
|
||||||
|
- Peer-to-peer
|
||||||
|
- Encrypted (via WebRTC)
|
||||||
|
- Serverless
|
||||||
|
- Ephemeral
|
||||||
|
- Decentralized
|
||||||
|
|
||||||
|
**Paketatutako bertsioa:** 1.0~ynh11
|
||||||
|
|
||||||
|
**Demoa:** <https://chitchatter.im/>
|
||||||
|
|
||||||
|
## Pantaila-argazkiak
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## Dokumentazioa eta baliabideak
|
||||||
|
|
||||||
|
- Aplikazioaren webgune ofiziala: <https://chitchatter.im/>
|
||||||
|
- Jatorrizko aplikazioaren kode-gordailua: <https://github.com/jeremyckahn/chitchatter>
|
||||||
|
- YunoHost Denda: <https://apps.yunohost.org/app/chitchatter>
|
||||||
|
- Eman errore baten berri: <https://github.com/YunoHost-Apps/chitchatter_ynh/issues>
|
||||||
|
|
||||||
|
## Garatzaileentzako informazioa
|
||||||
|
|
||||||
|
Bidali `pull request`a [`testing` abarrera](https://github.com/YunoHost-Apps/chitchatter_ynh/tree/testing).
|
||||||
|
|
||||||
|
`testing` abarra probatzeko, ondorengoa egin:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo yunohost app install https://github.com/YunoHost-Apps/chitchatter_ynh/tree/testing --debug
|
||||||
|
edo
|
||||||
|
sudo yunohost app upgrade chitchatter -u https://github.com/YunoHost-Apps/chitchatter_ynh/tree/testing --debug
|
||||||
|
```
|
||||||
|
|
||||||
|
**Informazio gehiago aplikazioaren paketatzeari buruz:** <https://yunohost.org/packaging_apps>
|
30
README_fr.md
30
README_fr.md
|
@ -1,6 +1,6 @@
|
||||||
<!--
|
<!--
|
||||||
N.B.: This README was automatically generated by https://github.com/YunoHost/apps/tree/master/tools/README-generator
|
Nota bene : ce README est automatiquement généré par <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
|
||||||
It shall NOT be edited by hand.
|
Il NE doit PAS être modifié à la main.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
# Chitchatter pour YunoHost
|
# Chitchatter pour YunoHost
|
||||||
|
@ -9,10 +9,10 @@ It shall NOT be edited by hand.
|
||||||
|
|
||||||
[](https://install-app.yunohost.org/?app=chitchatter)
|
[](https://install-app.yunohost.org/?app=chitchatter)
|
||||||
|
|
||||||
*[Read this readme in english.](./README.md)*
|
*[Lire le README dans d'autres langues.](./ALL_README.md)*
|
||||||
|
|
||||||
> *Ce package vous permet d’installer Chitchatter rapidement et simplement sur un serveur YunoHost.
|
> *Ce package vous permet d’installer Chitchatter rapidement et simplement sur un serveur YunoHost.*
|
||||||
Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l’installer et en profiter.*
|
> *Si vous n’avez pas YunoHost, consultez [ce guide](https://yunohost.org/install) pour savoir comment l’installer et en profiter.*
|
||||||
|
|
||||||
## Vue d’ensemble
|
## Vue d’ensemble
|
||||||
|
|
||||||
|
@ -27,9 +27,9 @@ Chitchatter est un outil de communication gratuit (comme dans le prix et la libe
|
||||||
- Éphémère
|
- Éphémère
|
||||||
- Décentralisé
|
- Décentralisé
|
||||||
|
|
||||||
**Version incluse :** 1.0~ynh10
|
**Version incluse :** 1.0~ynh11
|
||||||
|
|
||||||
**Démo :** https://chitchatter.im/
|
**Démo :** <https://chitchatter.im/>
|
||||||
|
|
||||||
## Captures d’écran
|
## Captures d’écran
|
||||||
|
|
||||||
|
@ -37,21 +37,21 @@ Chitchatter est un outil de communication gratuit (comme dans le prix et la libe
|
||||||
|
|
||||||
## Documentations et ressources
|
## Documentations et ressources
|
||||||
|
|
||||||
* Site officiel de l’app : <https://chitchatter.im/>
|
- Site officiel de l’app : <https://chitchatter.im/>
|
||||||
* Dépôt de code officiel de l’app : <https://github.com/jeremyckahn/chitchatter>
|
- Dépôt de code officiel de l’app : <https://github.com/jeremyckahn/chitchatter>
|
||||||
* YunoHost Store: <https://apps.yunohost.org/app/chitchatter>
|
- YunoHost Store : <https://apps.yunohost.org/app/chitchatter>
|
||||||
* Signaler un bug : <https://github.com/YunoHost-Apps/chitchatter_ynh/issues>
|
- Signaler un bug : <https://github.com/YunoHost-Apps/chitchatter_ynh/issues>
|
||||||
|
|
||||||
## Informations pour les développeurs
|
## Informations pour les développeurs
|
||||||
|
|
||||||
Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/chitchatter_ynh/tree/testing).
|
Merci de faire vos pull request sur la [branche `testing`](https://github.com/YunoHost-Apps/chitchatter_ynh/tree/testing).
|
||||||
|
|
||||||
Pour essayer la branche testing, procédez comme suit.
|
Pour essayer la branche `testing`, procédez comme suit :
|
||||||
|
|
||||||
``` bash
|
```bash
|
||||||
sudo yunohost app install https://github.com/YunoHost-Apps/chitchatter_ynh/tree/testing --debug
|
sudo yunohost app install https://github.com/YunoHost-Apps/chitchatter_ynh/tree/testing --debug
|
||||||
ou
|
ou
|
||||||
sudo yunohost app upgrade chitchatter -u https://github.com/YunoHost-Apps/chitchatter_ynh/tree/testing --debug
|
sudo yunohost app upgrade chitchatter -u https://github.com/YunoHost-Apps/chitchatter_ynh/tree/testing --debug
|
||||||
```
|
```
|
||||||
|
|
||||||
**Plus d’infos sur le packaging d’applications :** <https://yunohost.org/packaging_apps>
|
**Plus d’infos sur le packaging d’applications :** <https://yunohost.org/packaging_apps>
|
||||||
|
|
57
README_gl.md
Normal file
57
README_gl.md
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
<!--
|
||||||
|
NOTA: Este README foi creado automáticamente por <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
|
||||||
|
NON debe editarse manualmente.
|
||||||
|
-->
|
||||||
|
|
||||||
|
# Chitchatter para YunoHost
|
||||||
|
|
||||||
|
[](https://dash.yunohost.org/appci/app/chitchatter)  
|
||||||
|
|
||||||
|
[](https://install-app.yunohost.org/?app=chitchatter)
|
||||||
|
|
||||||
|
*[Le este README en outros idiomas.](./ALL_README.md)*
|
||||||
|
|
||||||
|
> *Este paquete permíteche instalar Chitchatter de xeito rápido e doado nun servidor YunoHost.*
|
||||||
|
> *Se non usas YunoHost, le a [documentación](https://yunohost.org/install) para saber como instalalo.*
|
||||||
|
|
||||||
|
## Vista xeral
|
||||||
|
|
||||||
|
Chitchatter is a free (as in both price and freedom) communication tool. It is designed with security and privacy in mind.
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
- Fully open source (licensed under GPL v2)
|
||||||
|
- Peer-to-peer
|
||||||
|
- Encrypted (via WebRTC)
|
||||||
|
- Serverless
|
||||||
|
- Ephemeral
|
||||||
|
- Decentralized
|
||||||
|
|
||||||
|
**Versión proporcionada:** 1.0~ynh11
|
||||||
|
|
||||||
|
**Demo:** <https://chitchatter.im/>
|
||||||
|
|
||||||
|
## Capturas de pantalla
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## Documentación e recursos
|
||||||
|
|
||||||
|
- Web oficial da app: <https://chitchatter.im/>
|
||||||
|
- Repositorio de orixe do código: <https://github.com/jeremyckahn/chitchatter>
|
||||||
|
- Tenda YunoHost: <https://apps.yunohost.org/app/chitchatter>
|
||||||
|
- Informar dun problema: <https://github.com/YunoHost-Apps/chitchatter_ynh/issues>
|
||||||
|
|
||||||
|
## Info de desenvolvemento
|
||||||
|
|
||||||
|
Envía a túa colaboración á [rama `testing`](https://github.com/YunoHost-Apps/chitchatter_ynh/tree/testing).
|
||||||
|
|
||||||
|
Para probar a rama `testing`, procede deste xeito:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo yunohost app install https://github.com/YunoHost-Apps/chitchatter_ynh/tree/testing --debug
|
||||||
|
ou
|
||||||
|
sudo yunohost app upgrade chitchatter -u https://github.com/YunoHost-Apps/chitchatter_ynh/tree/testing --debug
|
||||||
|
```
|
||||||
|
|
||||||
|
**Máis info sobre o empaquetado da app:** <https://yunohost.org/packaging_apps>
|
57
README_zh_Hans.md
Normal file
57
README_zh_Hans.md
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
<!--
|
||||||
|
注意:此 README 由 <https://github.com/YunoHost/apps/tree/master/tools/readme_generator> 自动生成
|
||||||
|
请勿手动编辑。
|
||||||
|
-->
|
||||||
|
|
||||||
|
# YunoHost 上的 Chitchatter
|
||||||
|
|
||||||
|
[](https://dash.yunohost.org/appci/app/chitchatter)  
|
||||||
|
|
||||||
|
[](https://install-app.yunohost.org/?app=chitchatter)
|
||||||
|
|
||||||
|
*[阅读此 README 的其它语言版本。](./ALL_README.md)*
|
||||||
|
|
||||||
|
> *通过此软件包,您可以在 YunoHost 服务器上快速、简单地安装 Chitchatter。*
|
||||||
|
> *如果您还没有 YunoHost,请参阅[指南](https://yunohost.org/install)了解如何安装它。*
|
||||||
|
|
||||||
|
## 概况
|
||||||
|
|
||||||
|
Chitchatter is a free (as in both price and freedom) communication tool. It is designed with security and privacy in mind.
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
- Fully open source (licensed under GPL v2)
|
||||||
|
- Peer-to-peer
|
||||||
|
- Encrypted (via WebRTC)
|
||||||
|
- Serverless
|
||||||
|
- Ephemeral
|
||||||
|
- Decentralized
|
||||||
|
|
||||||
|
**分发版本:** 1.0~ynh11
|
||||||
|
|
||||||
|
**演示:** <https://chitchatter.im/>
|
||||||
|
|
||||||
|
## 截图
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 文档与资源
|
||||||
|
|
||||||
|
- 官方应用网站: <https://chitchatter.im/>
|
||||||
|
- 上游应用代码库: <https://github.com/jeremyckahn/chitchatter>
|
||||||
|
- YunoHost 商店: <https://apps.yunohost.org/app/chitchatter>
|
||||||
|
- 报告 bug: <https://github.com/YunoHost-Apps/chitchatter_ynh/issues>
|
||||||
|
|
||||||
|
## 开发者信息
|
||||||
|
|
||||||
|
请向 [`testing` 分支](https://github.com/YunoHost-Apps/chitchatter_ynh/tree/testing) 发送拉取请求。
|
||||||
|
|
||||||
|
如要尝试 `testing` 分支,请这样操作:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo yunohost app install https://github.com/YunoHost-Apps/chitchatter_ynh/tree/testing --debug
|
||||||
|
或
|
||||||
|
sudo yunohost app upgrade chitchatter -u https://github.com/YunoHost-Apps/chitchatter_ynh/tree/testing --debug
|
||||||
|
```
|
||||||
|
|
||||||
|
**有关应用打包的更多信息:** <https://yunohost.org/packaging_apps>
|
|
@ -5,9 +5,9 @@ name = "Chitchatter"
|
||||||
description.en = "Peer-to-peer chat that is serverless, decentralized, and ephemeral"
|
description.en = "Peer-to-peer chat that is serverless, decentralized, and ephemeral"
|
||||||
description.fr = "Chat peer-to-peer sans serveur, décentralisée et éphémère"
|
description.fr = "Chat peer-to-peer sans serveur, décentralisée et éphémère"
|
||||||
|
|
||||||
version = "1.0~ynh10"
|
version = "1.0~ynh11"
|
||||||
|
|
||||||
maintainers = ["eric_G"]
|
maintainers = []
|
||||||
|
|
||||||
[upstream]
|
[upstream]
|
||||||
license = "GPL-2.0"
|
license = "GPL-2.0"
|
||||||
|
@ -19,8 +19,11 @@ code = "https://github.com/jeremyckahn/chitchatter"
|
||||||
yunohost = ">= 11.2"
|
yunohost = ">= 11.2"
|
||||||
architectures = "all"
|
architectures = "all"
|
||||||
multi_instance = true
|
multi_instance = true
|
||||||
|
|
||||||
ldap = false
|
ldap = false
|
||||||
|
|
||||||
sso = false
|
sso = false
|
||||||
|
|
||||||
disk = "50M"
|
disk = "50M"
|
||||||
ram.build = "2800M"
|
ram.build = "2800M"
|
||||||
ram.runtime = "50M"
|
ram.runtime = "50M"
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
# nodejs version
|
# nodejs version
|
||||||
nodejs_version=18
|
nodejs_version=18
|
||||||
version_commit=d546fef71ce95b561017bad466ee0294987a5383
|
version_commit=94a4b2fb2e2ffad7b2fb04a78257a6dac4e7095a
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# PERSONAL HELPERS
|
# PERSONAL HELPERS
|
||||||
|
|
|
@ -33,9 +33,6 @@ pushd "$install_dir"
|
||||||
git reset --hard --quiet $version_commit
|
git reset --hard --quiet $version_commit
|
||||||
popd
|
popd
|
||||||
|
|
||||||
chmod -R o-rwx "$install_dir"
|
|
||||||
chown -R $app:www-data "$install_dir"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -56,6 +53,9 @@ pushd $install_dir
|
||||||
ynh_exec_warn_less $ynh_npm run build
|
ynh_exec_warn_less $ynh_npm run build
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
chmod -R o-rwx "$install_dir"
|
||||||
|
chown -R $app:www-data "$install_dir"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -17,11 +17,6 @@ ynh_script_progression --message="Removing NGINX web server configuration..." --
|
||||||
# Remove the dedicated NGINX config
|
# Remove the dedicated NGINX config
|
||||||
ynh_remove_nginx_config
|
ynh_remove_nginx_config
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# REMOVE DEPENDENCIES
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Removing dependencies..." --weight=1
|
|
||||||
|
|
||||||
ynh_remove_nodejs
|
ynh_remove_nodejs
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -9,32 +9,19 @@
|
||||||
source _common.sh
|
source _common.sh
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# CHECK VERSION
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
upgrade_type=$(ynh_check_app_version_changed)
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
ynh_script_progression --message="Upgrading source files..." --weight=5
|
||||||
|
|
||||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
pushd $install_dir
|
||||||
then
|
chown -R $app:www-data "$install_dir"
|
||||||
ynh_script_progression --message="Upgrading source files..." --weight=5
|
git config --system --add safe.directory $install_dir
|
||||||
|
|
||||||
pushd $install_dir
|
|
||||||
chown -R $app:www-data "$install_dir"
|
|
||||||
git config --system --add safe.directory $install_dir
|
|
||||||
|
|
||||||
ynh_exec_as $app git fetch
|
ynh_exec_as $app git fetch
|
||||||
ynh_exec_as $app git reset --hard --quiet $version_commit
|
ynh_exec_as $app git reset --hard --quiet $version_commit
|
||||||
ynh_exec_as $app git pull
|
ynh_exec_as $app git pull
|
||||||
popd
|
popd
|
||||||
fi
|
|
||||||
|
|
||||||
chmod -R o-rwx "$install_dir"
|
|
||||||
chown -R $app:www-data "$install_dir"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# UPGRADE DEPENDENCIES
|
# UPGRADE DEPENDENCIES
|
||||||
|
@ -63,6 +50,9 @@ pushd $install_dir
|
||||||
ynh_exec_warn_less $ynh_npm run build
|
ynh_exec_warn_less $ynh_npm run build
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
chmod -R o-rwx "$install_dir"
|
||||||
|
chown -R $app:www-data "$install_dir"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue