mirror of
https://github.com/YunoHost-Apps/thelounge_ynh.git
synced 2024-09-03 20:35:54 +02:00
Merge pull request #64 from YunoHost-Apps/ci-auto-update-4.4.3
Upgrade to v4.4.3
This commit is contained in:
commit
8aea1385b5
13 changed files with 177 additions and 118 deletions
6
ALL_README.md
Normal file
6
ALL_README.md
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
# All available README files by language
|
||||||
|
|
||||||
|
- [Read the README in English](README.md)
|
||||||
|
- [Irakurri README euskaraz](README_eu.md)
|
||||||
|
- [Lire le README en français](README_fr.md)
|
||||||
|
- [Le o README en galego](README_gl.md)
|
30
README.md
30
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,14 +9,14 @@ It shall NOT be edited by hand.
|
||||||
|
|
||||||
[![Install The Lounge with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=thelounge)
|
[![Install The Lounge with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=thelounge)
|
||||||
|
|
||||||
*[Lire ce readme en français.](./README_fr.md)*
|
*[Read this README in other languages.](./ALL_README.md)*
|
||||||
|
|
||||||
> *This package allows you to install The Lounge quickly and simply on a YunoHost server.
|
> *This package allows you to install The Lounge 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
|
||||||
|
|
||||||
Modern web IRC client designed for self-hosting
|
Modern web IRC client designed for self-hosting.
|
||||||
|
|
||||||
### Features:
|
### Features:
|
||||||
|
|
||||||
|
@ -24,9 +24,9 @@ Modern web IRC client designed for self-hosting
|
||||||
- Responsive interface
|
- Responsive interface
|
||||||
- Multi-user support
|
- Multi-user support
|
||||||
|
|
||||||
**Shipped version:** 4.4.1~ynh2
|
**Shipped version:** 4.4.3~ynh1
|
||||||
|
|
||||||
**Demo:** https://demo.thelounge.chat/
|
**Demo:** <https://demo.thelounge.chat/>
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
|
@ -34,19 +34,19 @@ Modern web IRC client designed for self-hosting
|
||||||
|
|
||||||
## Documentation and resources
|
## Documentation and resources
|
||||||
|
|
||||||
* Official app website: <https://thelounge.chat/>
|
- Official app website: <https://thelounge.chat/>
|
||||||
* Official admin documentation: <https://thelounge.chat/docs>
|
- Official admin documentation: <https://thelounge.chat/docs>
|
||||||
* Upstream app code repository: <https://github.com/thelounge/thelounge>
|
- Upstream app code repository: <https://github.com/thelounge/thelounge>
|
||||||
* YunoHost documentation for this app: <https://yunohost.org/app_thelounge>
|
- YunoHost Store: <https://apps.yunohost.org/app/thelounge>
|
||||||
* Report a bug: <https://github.com/YunoHost-Apps/thelounge_ynh/issues>
|
- Report a bug: <https://github.com/YunoHost-Apps/thelounge_ynh/issues>
|
||||||
|
|
||||||
## Developer info
|
## Developer info
|
||||||
|
|
||||||
Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/thelounge_ynh/tree/testing).
|
Please send your pull request to the [`testing` branch](https://github.com/YunoHost-Apps/thelounge_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/thelounge_ynh/tree/testing --debug
|
sudo yunohost app install https://github.com/YunoHost-Apps/thelounge_ynh/tree/testing --debug
|
||||||
or
|
or
|
||||||
sudo yunohost app upgrade thelounge -u https://github.com/YunoHost-Apps/thelounge_ynh/tree/testing --debug
|
sudo yunohost app upgrade thelounge -u https://github.com/YunoHost-Apps/thelounge_ynh/tree/testing --debug
|
||||||
|
|
55
README_eu.md
Normal file
55
README_eu.md
Normal file
|
@ -0,0 +1,55 @@
|
||||||
|
<!--
|
||||||
|
Ohart ongi: README hau automatikoki sortu da <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>ri esker
|
||||||
|
EZ editatu eskuz.
|
||||||
|
-->
|
||||||
|
|
||||||
|
# The Lounge YunoHost-erako
|
||||||
|
|
||||||
|
[![Integrazio maila](https://dash.yunohost.org/integration/thelounge.svg)](https://dash.yunohost.org/appci/app/thelounge) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/thelounge.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/thelounge.maintain.svg)
|
||||||
|
|
||||||
|
[![Instalatu The Lounge YunoHost-ekin](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=thelounge)
|
||||||
|
|
||||||
|
*[Irakurri README hau beste hizkuntzatan.](./ALL_README.md)*
|
||||||
|
|
||||||
|
> *Pakete honek The Lounge YunoHost zerbitzari batean azkar eta zailtasunik gabe instalatzea ahalbidetzen dizu.*
|
||||||
|
> *YunoHost ez baduzu, kontsultatu [gida](https://yunohost.org/install) nola instalatu ikasteko.*
|
||||||
|
|
||||||
|
## Aurreikuspena
|
||||||
|
|
||||||
|
Modern web IRC client designed for self-hosting.
|
||||||
|
|
||||||
|
### Features:
|
||||||
|
|
||||||
|
- Always connected
|
||||||
|
- Responsive interface
|
||||||
|
- Multi-user support
|
||||||
|
|
||||||
|
**Paketatutako bertsioa:** 4.4.3~ynh1
|
||||||
|
|
||||||
|
**Demoa:** <https://demo.thelounge.chat/>
|
||||||
|
|
||||||
|
## Pantaila-argazkiak
|
||||||
|
|
||||||
|
![The Lounge(r)en pantaila-argazkia](./doc/screenshots/thelounge-screenshot.png)
|
||||||
|
|
||||||
|
## Dokumentazioa eta baliabideak
|
||||||
|
|
||||||
|
- Aplikazioaren webgune ofiziala: <https://thelounge.chat/>
|
||||||
|
- Administratzaileen dokumentazio ofiziala: <https://thelounge.chat/docs>
|
||||||
|
- Jatorrizko aplikazioaren kode-gordailua: <https://github.com/thelounge/thelounge>
|
||||||
|
- YunoHost Denda: <https://apps.yunohost.org/app/thelounge>
|
||||||
|
- Eman errore baten berri: <https://github.com/YunoHost-Apps/thelounge_ynh/issues>
|
||||||
|
|
||||||
|
## Garatzaileentzako informazioa
|
||||||
|
|
||||||
|
Bidali `pull request`a [`testing` abarrera](https://github.com/YunoHost-Apps/thelounge_ynh/tree/testing).
|
||||||
|
|
||||||
|
`testing` abarra probatzeko, ondorengoa egin:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo yunohost app install https://github.com/YunoHost-Apps/thelounge_ynh/tree/testing --debug
|
||||||
|
edo
|
||||||
|
sudo yunohost app upgrade thelounge -u https://github.com/YunoHost-Apps/thelounge_ynh/tree/testing --debug
|
||||||
|
```
|
||||||
|
|
||||||
|
**Informazio gehiago aplikazioaren paketatzeari buruz:** <https://yunohost.org/packaging_apps>
|
34
README_fr.md
34
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.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
# The Lounge pour YunoHost
|
# The Lounge pour YunoHost
|
||||||
|
@ -9,14 +9,14 @@ It shall NOT be edited by hand.
|
||||||
|
|
||||||
[![Installer The Lounge avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=thelounge)
|
[![Installer The Lounge avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=thelounge)
|
||||||
|
|
||||||
*[Read this readme in english.](./README.md)*
|
*[Lire le README dans d'autres langues.](./ALL_README.md)*
|
||||||
|
|
||||||
> *Ce package vous permet d’installer The Lounge rapidement et simplement sur un serveur YunoHost.
|
> *Ce package vous permet d’installer The Lounge 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
|
||||||
|
|
||||||
Client Web IRC moderne conçu pour l'auto-hébergement
|
Client Web IRC moderne conçu pour l'auto-hébergement.
|
||||||
|
|
||||||
### Caractéristiques:
|
### Caractéristiques:
|
||||||
|
|
||||||
|
@ -24,9 +24,9 @@ Client Web IRC moderne conçu pour l'auto-hébergement
|
||||||
- Interface réactive
|
- Interface réactive
|
||||||
- Support multi-utilisateurs
|
- Support multi-utilisateurs
|
||||||
|
|
||||||
**Version incluse :** 4.4.1~ynh2
|
**Version incluse :** 4.4.3~ynh1
|
||||||
|
|
||||||
**Démo :** https://demo.thelounge.chat/
|
**Démo :** <https://demo.thelounge.chat/>
|
||||||
|
|
||||||
## Captures d’écran
|
## Captures d’écran
|
||||||
|
|
||||||
|
@ -34,22 +34,22 @@ Client Web IRC moderne conçu pour l'auto-hébergement
|
||||||
|
|
||||||
## Documentations et ressources
|
## Documentations et ressources
|
||||||
|
|
||||||
* Site officiel de l’app : <https://thelounge.chat/>
|
- Site officiel de l’app : <https://thelounge.chat/>
|
||||||
* Documentation officielle de l’admin : <https://thelounge.chat/docs>
|
- Documentation officielle de l’admin : <https://thelounge.chat/docs>
|
||||||
* Dépôt de code officiel de l’app : <https://github.com/thelounge/thelounge>
|
- Dépôt de code officiel de l’app : <https://github.com/thelounge/thelounge>
|
||||||
* Documentation YunoHost pour cette app : <https://yunohost.org/app_thelounge>
|
- YunoHost Store : <https://apps.yunohost.org/app/thelounge>
|
||||||
* Signaler un bug : <https://github.com/YunoHost-Apps/thelounge_ynh/issues>
|
- Signaler un bug : <https://github.com/YunoHost-Apps/thelounge_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/thelounge_ynh/tree/testing).
|
Merci de faire vos pull request sur la [branche `testing`](https://github.com/YunoHost-Apps/thelounge_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/thelounge_ynh/tree/testing --debug
|
sudo yunohost app install https://github.com/YunoHost-Apps/thelounge_ynh/tree/testing --debug
|
||||||
ou
|
ou
|
||||||
sudo yunohost app upgrade thelounge -u https://github.com/YunoHost-Apps/thelounge_ynh/tree/testing --debug
|
sudo yunohost app upgrade thelounge -u https://github.com/YunoHost-Apps/thelounge_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>
|
||||||
|
|
55
README_gl.md
Normal file
55
README_gl.md
Normal file
|
@ -0,0 +1,55 @@
|
||||||
|
<!--
|
||||||
|
NOTA: Este README foi creado automáticamente por <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
|
||||||
|
NON debe editarse manualmente.
|
||||||
|
-->
|
||||||
|
|
||||||
|
# The Lounge para YunoHost
|
||||||
|
|
||||||
|
[![Nivel de integración](https://dash.yunohost.org/integration/thelounge.svg)](https://dash.yunohost.org/appci/app/thelounge) ![Estado de funcionamento](https://ci-apps.yunohost.org/ci/badges/thelounge.status.svg) ![Estado de mantemento](https://ci-apps.yunohost.org/ci/badges/thelounge.maintain.svg)
|
||||||
|
|
||||||
|
[![Instalar The Lounge con YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=thelounge)
|
||||||
|
|
||||||
|
*[Le este README en outros idiomas.](./ALL_README.md)*
|
||||||
|
|
||||||
|
> *Este paquete permíteche instalar The Lounge 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
|
||||||
|
|
||||||
|
Modern web IRC client designed for self-hosting.
|
||||||
|
|
||||||
|
### Features:
|
||||||
|
|
||||||
|
- Always connected
|
||||||
|
- Responsive interface
|
||||||
|
- Multi-user support
|
||||||
|
|
||||||
|
**Versión proporcionada:** 4.4.3~ynh1
|
||||||
|
|
||||||
|
**Demo:** <https://demo.thelounge.chat/>
|
||||||
|
|
||||||
|
## Capturas de pantalla
|
||||||
|
|
||||||
|
![Captura de pantalla de The Lounge](./doc/screenshots/thelounge-screenshot.png)
|
||||||
|
|
||||||
|
## Documentación e recursos
|
||||||
|
|
||||||
|
- Web oficial da app: <https://thelounge.chat/>
|
||||||
|
- Documentación oficial para admin: <https://thelounge.chat/docs>
|
||||||
|
- Repositorio de orixe do código: <https://github.com/thelounge/thelounge>
|
||||||
|
- Tenda YunoHost: <https://apps.yunohost.org/app/thelounge>
|
||||||
|
- Informar dun problema: <https://github.com/YunoHost-Apps/thelounge_ynh/issues>
|
||||||
|
|
||||||
|
## Info de desenvolvemento
|
||||||
|
|
||||||
|
Envía a túa colaboración á [rama `testing`](https://github.com/YunoHost-Apps/thelounge_ynh/tree/testing).
|
||||||
|
|
||||||
|
Para probar a rama `testing`, procede deste xeito:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo yunohost app install https://github.com/YunoHost-Apps/thelounge_ynh/tree/testing --debug
|
||||||
|
ou
|
||||||
|
sudo yunohost app upgrade thelounge -u https://github.com/YunoHost-Apps/thelounge_ynh/tree/testing --debug
|
||||||
|
```
|
||||||
|
|
||||||
|
**Máis info sobre o empaquetado da app:** <https://yunohost.org/packaging_apps>
|
|
@ -1,4 +1,4 @@
|
||||||
Modern web IRC client designed for self-hosting
|
Modern web IRC client designed for self-hosting.
|
||||||
|
|
||||||
### Features:
|
### Features:
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
Client Web IRC moderne conçu pour l'auto-hébergement
|
Client Web IRC moderne conçu pour l'auto-hébergement.
|
||||||
|
|
||||||
### Caractéristiques:
|
### Caractéristiques:
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ name = "The Lounge"
|
||||||
description.en = "Web IRC client"
|
description.en = "Web IRC client"
|
||||||
description.fr = "Client Web IRC"
|
description.fr = "Client Web IRC"
|
||||||
|
|
||||||
version = "4.4.1~ynh2"
|
version = "4.4.3~ynh1"
|
||||||
|
|
||||||
maintainers = ["rafi59"]
|
maintainers = ["rafi59"]
|
||||||
|
|
||||||
|
@ -20,8 +20,11 @@ code = "https://github.com/thelounge/thelounge"
|
||||||
yunohost = ">= 11.2"
|
yunohost = ">= 11.2"
|
||||||
architectures = "all"
|
architectures = "all"
|
||||||
multi_instance = false
|
multi_instance = false
|
||||||
|
|
||||||
ldap = false
|
ldap = false
|
||||||
|
|
||||||
sso = false
|
sso = false
|
||||||
|
|
||||||
disk = "50M"
|
disk = "50M"
|
||||||
ram.build = "1500M"
|
ram.build = "1500M"
|
||||||
ram.runtime = "50M"
|
ram.runtime = "50M"
|
||||||
|
@ -42,8 +45,8 @@ ram.runtime = "50M"
|
||||||
[resources.sources]
|
[resources.sources]
|
||||||
|
|
||||||
[resources.sources.main]
|
[resources.sources.main]
|
||||||
url = "https://github.com/thelounge/thelounge/archive/refs/tags/v4.4.1.tar.gz"
|
url = "https://github.com/thelounge/thelounge/archive/refs/tags/v4.4.3.tar.gz"
|
||||||
sha256 = "4f66e9f8df00c56166daec59793ac0f1e245be72ea3606d84c588ae8e6c097c7"
|
sha256 = "67491b81be767acfd4a99c52690e400c9f1309a703624eba849236e93492b86a"
|
||||||
autoupdate.strategy = "latest_github_tag"
|
autoupdate.strategy = "latest_github_tag"
|
||||||
|
|
||||||
[resources.ports]
|
[resources.ports]
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
# COMMON VARIABLES
|
# COMMON VARIABLES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
nodejs_version=16
|
nodejs_version=18
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# PERSONAL HELPERS
|
# PERSONAL HELPERS
|
||||||
|
|
|
@ -43,12 +43,12 @@ ynh_add_nginx_config
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Modifying a config file..." --weight=1
|
ynh_script_progression --message="Modifying a config file..." --weight=1
|
||||||
|
|
||||||
ynh_add_config --template="../conf/config.js" --destination="$data_dir/config.js"
|
ynh_add_config --template="config.js" --destination="$data_dir/config.js"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL THE LOUNGE
|
# INSTALL THE LOUNGE
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Installing The Lounge..." --weight=10
|
ynh_script_progression --message="Installing $app..." --weight=10
|
||||||
|
|
||||||
pushd $install_dir
|
pushd $install_dir
|
||||||
ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
|
|
|
@ -14,6 +14,7 @@ source /usr/share/yunohost/helpers
|
||||||
#=================================================
|
#=================================================
|
||||||
# REMOVE SERVICE INTEGRATION IN YUNOHOST
|
# REMOVE SERVICE INTEGRATION IN YUNOHOST
|
||||||
#=================================================
|
#=================================================
|
||||||
|
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
|
||||||
|
|
||||||
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
|
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
|
||||||
if ynh_exec_warn_less yunohost service status $app >/dev/null
|
if ynh_exec_warn_less yunohost service status $app >/dev/null
|
||||||
|
@ -22,30 +23,15 @@ then
|
||||||
yunohost service remove $app
|
yunohost service remove $app
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
# Remove the dedicated NGINX config
|
||||||
# STOP AND REMOVE SERVICE
|
ynh_remove_nginx_config
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Stopping and removing the systemd service..." --weight=2
|
|
||||||
|
|
||||||
# Remove the dedicated systemd config
|
# Remove the dedicated systemd config
|
||||||
ynh_remove_systemd_config
|
ynh_remove_systemd_config
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# REMOVE DEPENDENCIES
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Removing dependencies..." --weight=1
|
|
||||||
|
|
||||||
# Remove NodeJS
|
# Remove NodeJS
|
||||||
ynh_remove_nodejs
|
ynh_remove_nodejs
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# REMOVE NGINX CONFIGURATION
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Removing NGINX web server configuration..." --weight=1
|
|
||||||
|
|
||||||
# Remove the dedicated NGINX config
|
|
||||||
ynh_remove_nginx_config
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -9,15 +9,6 @@
|
||||||
source ../settings/scripts/_common.sh
|
source ../settings/scripts/_common.sh
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# STANDARD RESTORATION STEPS
|
|
||||||
#=================================================
|
|
||||||
# RESTORE THE NGINX CONFIGURATION
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Restoring the NGINX configuration..." --weight=1
|
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE APP MAIN DIR
|
# RESTORE THE APP MAIN DIR
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -50,16 +41,13 @@ ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE SYSTEMD
|
# RESTORE SYSTEMD
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Restoring the systemd configuration..." --weight=1
|
ynh_script_progression --message="Restoring system configurations related to $app..." --weight=1
|
||||||
|
|
||||||
|
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
|
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
|
||||||
systemctl enable $app.service --quiet
|
systemctl enable $app.service --quiet
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# INTEGRATE SERVICE IN YUNOHOST
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
|
||||||
|
|
||||||
yunohost service add $app --description="Client Web IRC" --log="/var/log/$app/$app.log"
|
yunohost service add $app --description="Client Web IRC" --log="/var/log/$app/$app.log"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -69,13 +57,6 @@ ynh_script_progression --message="Starting a systemd service..." --weight=1
|
||||||
|
|
||||||
ynh_systemd_action --service_name=$app --action=start --log_path=systemd
|
ynh_systemd_action --service_name=$app --action=start --log_path=systemd
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# GENERIC FINALIZATION
|
|
||||||
#=================================================
|
|
||||||
# RELOAD NGINX
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Reloading NGINX web server..." --weight=1
|
|
||||||
|
|
||||||
ynh_systemd_action --service_name=nginx --action=reload
|
ynh_systemd_action --service_name=nginx --action=reload
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -9,12 +9,6 @@
|
||||||
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)
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STANDARD UPGRADE STEPS
|
# STANDARD UPGRADE STEPS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -27,32 +21,18 @@ ynh_systemd_action --service_name=$app --action=stop --log_path=systemd
|
||||||
#=================================================
|
#=================================================
|
||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
ynh_script_progression --message="Upgrading source files..." --weight=2
|
||||||
|
|
||||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
ynh_setup_source --dest_dir=$install_dir --full_replace=1
|
||||||
then
|
|
||||||
ynh_script_progression --message="Upgrading source files..." --weight=2
|
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
|
||||||
ynh_setup_source --dest_dir=$install_dir --full_replace=1
|
|
||||||
fi
|
|
||||||
|
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$install_dir"
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# NGINX CONFIGURATION
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=2
|
|
||||||
|
|
||||||
# Create a dedicated NGINX config
|
|
||||||
ynh_add_nginx_config
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# UPGRADE DEPENDENCIES
|
# UPGRADE DEPENDENCIES
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Upgrading dependencies..." --weight=5
|
ynh_script_progression --message="Upgrading dependencies..." --weight=5
|
||||||
|
|
||||||
# Install Nodejs
|
|
||||||
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
|
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -60,31 +40,24 @@ ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
|
||||||
#=================================================
|
#=================================================
|
||||||
# UPGRADE THE LOUNGE
|
# UPGRADE THE LOUNGE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
ynh_script_progression --message="Installing $app..." --weight=3
|
||||||
|
|
||||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
pushd $install_dir
|
||||||
then
|
ynh_use_nodejs
|
||||||
pushd $install_dir
|
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn install
|
||||||
ynh_use_nodejs
|
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH NODE_ENV=production yarn build
|
||||||
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn install
|
popd
|
||||||
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH NODE_ENV=production yarn build
|
|
||||||
popd
|
|
||||||
fi
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SYSTEMD
|
# REAPPLY SYSTEM CONFIGURATIONS
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Upgrading systemd configuration..." --weight=2
|
ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1
|
||||||
|
|
||||||
|
ynh_add_nginx_config
|
||||||
|
|
||||||
env_path="$PATH"
|
env_path="$PATH"
|
||||||
ynh_add_systemd_config
|
ynh_add_systemd_config
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# GENERIC FINALIZATION
|
|
||||||
#=================================================
|
|
||||||
# SECURE FILES AND DIRECTORIES
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
|
||||||
|
|
||||||
yunohost service add $app --description="Client Web IRC" --log="/var/log/$app/$app.log"
|
yunohost service add $app --description="Client Web IRC" --log="/var/log/$app/$app.log"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue