Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Old testing #24

Draft
wants to merge 12 commits into
base: testing
Choose a base branch
from
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*~
*.sw[op]
.DS_Store
1 change: 1 addition & 0 deletions ALL_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
- [Le o README en galego](README_gl.md)
- [Baca README dalam bahasa bahasa Indonesia](README_id.md)
- [Lees de README in het Nederlands](README_nl.md)
- [Przeczytaj README w języku polski](README_pl.md)
- [Прочитать README на русский](README_ru.md)
- [阅读中文(简体)的 README](README_zh_Hans.md)
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ It shall NOT be edited by hand.

# Flood for YunoHost

[![Integration level](https://dash.yunohost.org/integration/flood.svg)](https://ci-apps.yunohost.org/ci/apps/flood/) ![Working status](https://ci-apps.yunohost.org/ci/badges/flood.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/flood.maintain.svg)
[![Integration level](https://apps.yunohost.org/badge/integration/flood)](https://ci-apps.yunohost.org/ci/apps/flood/)
![Working status](https://apps.yunohost.org/badge/state/flood)
![Maintenance status](https://apps.yunohost.org/badge/maintained/flood)

[![Install Flood with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=flood)

Expand Down
4 changes: 3 additions & 1 deletion README_es.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ No se debe editar a mano.

# Flood para Yunohost

[![Nivel de integración](https://dash.yunohost.org/integration/flood.svg)](https://ci-apps.yunohost.org/ci/apps/flood/) ![Estado funcional](https://ci-apps.yunohost.org/ci/badges/flood.status.svg) ![Estado En Mantención](https://ci-apps.yunohost.org/ci/badges/flood.maintain.svg)
[![Nivel de integración](https://apps.yunohost.org/badge/integration/flood)](https://ci-apps.yunohost.org/ci/apps/flood/)
![Estado funcional](https://apps.yunohost.org/badge/state/flood)
![Estado En Mantención](https://apps.yunohost.org/badge/maintained/flood)

[![Instalar Flood con Yunhost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=flood)

Expand Down
4 changes: 3 additions & 1 deletion README_eu.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ EZ editatu eskuz.

# Flood YunoHost-erako

[![Integrazio maila](https://dash.yunohost.org/integration/flood.svg)](https://ci-apps.yunohost.org/ci/apps/flood/) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/flood.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/flood.maintain.svg)
[![Integrazio maila](https://apps.yunohost.org/badge/integration/flood)](https://ci-apps.yunohost.org/ci/apps/flood/)
![Funtzionamendu egoera](https://apps.yunohost.org/badge/state/flood)
![Mantentze egoera](https://apps.yunohost.org/badge/maintained/flood)

[![Instalatu Flood YunoHost-ekin](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=flood)

Expand Down
4 changes: 3 additions & 1 deletion README_fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ Il NE doit PAS être modifié à la main.

# Flood pour YunoHost

[![Niveau d’intégration](https://dash.yunohost.org/integration/flood.svg)](https://ci-apps.yunohost.org/ci/apps/flood/) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/flood.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/flood.maintain.svg)
[![Niveau d’intégration](https://apps.yunohost.org/badge/integration/flood)](https://ci-apps.yunohost.org/ci/apps/flood/)
![Statut du fonctionnement](https://apps.yunohost.org/badge/state/flood)
![Statut de maintenance](https://apps.yunohost.org/badge/maintained/flood)

[![Installer Flood avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=flood)

Expand Down
4 changes: 3 additions & 1 deletion README_gl.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ NON debe editarse manualmente.

# Flood para YunoHost

[![Nivel de integración](https://dash.yunohost.org/integration/flood.svg)](https://ci-apps.yunohost.org/ci/apps/flood/) ![Estado de funcionamento](https://ci-apps.yunohost.org/ci/badges/flood.status.svg) ![Estado de mantemento](https://ci-apps.yunohost.org/ci/badges/flood.maintain.svg)
[![Nivel de integración](https://apps.yunohost.org/badge/integration/flood)](https://ci-apps.yunohost.org/ci/apps/flood/)
![Estado de funcionamento](https://apps.yunohost.org/badge/state/flood)
![Estado de mantemento](https://apps.yunohost.org/badge/maintained/flood)

[![Instalar Flood con YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=flood)

Expand Down
4 changes: 3 additions & 1 deletion README_id.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ Ini TIDAK boleh diedit dengan tangan.

# Flood untuk YunoHost

[![Tingkat integrasi](https://dash.yunohost.org/integration/flood.svg)](https://ci-apps.yunohost.org/ci/apps/flood/) ![Status kerja](https://ci-apps.yunohost.org/ci/badges/flood.status.svg) ![Status pemeliharaan](https://ci-apps.yunohost.org/ci/badges/flood.maintain.svg)
[![Tingkat integrasi](https://apps.yunohost.org/badge/integration/flood)](https://ci-apps.yunohost.org/ci/apps/flood/)
![Status kerja](https://apps.yunohost.org/badge/state/flood)
![Status pemeliharaan](https://apps.yunohost.org/badge/maintained/flood)

[![Pasang Flood dengan YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=flood)

Expand Down
4 changes: 3 additions & 1 deletion README_nl.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ Hij mag NIET handmatig aangepast worden.

# Flood voor Yunohost

[![Integratieniveau](https://dash.yunohost.org/integration/flood.svg)](https://ci-apps.yunohost.org/ci/apps/flood/) ![Mate van functioneren](https://ci-apps.yunohost.org/ci/badges/flood.status.svg) ![Onderhoudsstatus](https://ci-apps.yunohost.org/ci/badges/flood.maintain.svg)
[![Integratieniveau](https://apps.yunohost.org/badge/integration/flood)](https://ci-apps.yunohost.org/ci/apps/flood/)
![Mate van functioneren](https://apps.yunohost.org/badge/state/flood)
![Onderhoudsstatus](https://apps.yunohost.org/badge/maintained/flood)

[![Flood met Yunohost installeren](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=flood)

Expand Down
49 changes: 49 additions & 0 deletions README_pl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<!--
To README zostało automatycznie wygenerowane przez <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
Nie powinno być ono edytowane ręcznie.
-->

# Flood dla YunoHost

[![Poziom integracji](https://apps.yunohost.org/badge/integration/flood)](https://ci-apps.yunohost.org/ci/apps/flood/)
![Status działania](https://apps.yunohost.org/badge/state/flood)
![Status utrzymania](https://apps.yunohost.org/badge/maintained/flood)

[![Zainstaluj Flood z YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=flood)

*[Przeczytaj plik README w innym języku.](./ALL_README.md)*

> *Ta aplikacja pozwala na szybką i prostą instalację Flood na serwerze YunoHost.*
> *Jeżeli nie masz YunoHost zapoznaj się z [poradnikiem](https://yunohost.org/install) instalacji.*

## Przegląd

Flood is a monitoring service for rTorrent. It's a Node.js service that communicates with your favorite torrent client and serves a decent web UI for administration.

**Dostarczona wersja:** 4.8.2~ynh3

## Zrzuty ekranu

![Zrzut ekranu z Flood](./doc/screenshots/screenshot.png)

## Dokumentacja i zasoby

- Oficjalna strona aplikacji: <https://flood.js.org/>
- Oficjalna dokumentacja dla administratora: <https://github.com/jesec/flood/wiki>
- Repozytorium z kodem źródłowym: <https://github.com/jesec/flood>
- Sklep YunoHost: <https://apps.yunohost.org/app/flood>
- Zgłaszanie błędów: <https://github.com/YunoHost-Apps/flood_ynh/issues>

## Informacje od twórców

Wyślij swój pull request do [gałęzi `testing`](https://github.com/YunoHost-Apps/flood_ynh/tree/testing).

Aby wypróbować gałąź `testing` postępuj zgodnie z instrukcjami:

```bash
sudo yunohost app install https://github.com/YunoHost-Apps/flood_ynh/tree/testing --debug
lub
sudo yunohost app upgrade flood -u https://github.com/YunoHost-Apps/flood_ynh/tree/testing --debug
```

**Więcej informacji o tworzeniu paczek aplikacji:** <https://yunohost.org/packaging_apps>
4 changes: 3 additions & 1 deletion README_ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

# Flood для YunoHost

[![Уровень интеграции](https://dash.yunohost.org/integration/flood.svg)](https://ci-apps.yunohost.org/ci/apps/flood/) ![Состояние работы](https://ci-apps.yunohost.org/ci/badges/flood.status.svg) ![Состояние сопровождения](https://ci-apps.yunohost.org/ci/badges/flood.maintain.svg)
[![Уровень интеграции](https://apps.yunohost.org/badge/integration/flood)](https://ci-apps.yunohost.org/ci/apps/flood/)
![Состояние работы](https://apps.yunohost.org/badge/state/flood)
![Состояние сопровождения](https://apps.yunohost.org/badge/maintained/flood)

[![Установите Flood с YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=flood)

Expand Down
4 changes: 3 additions & 1 deletion README_zh_Hans.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

# YunoHost 上的 Flood

[![集成程度](https://dash.yunohost.org/integration/flood.svg)](https://ci-apps.yunohost.org/ci/apps/flood/) ![工作状态](https://ci-apps.yunohost.org/ci/badges/flood.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/flood.maintain.svg)
[![集成程度](https://apps.yunohost.org/badge/integration/flood)](https://ci-apps.yunohost.org/ci/apps/flood/)
![工作状态](https://apps.yunohost.org/badge/state/flood)
![维护状态](https://apps.yunohost.org/badge/maintained/flood)

[![使用 YunoHost 安装 Flood](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=flood)

Expand Down
2 changes: 1 addition & 1 deletion conf/flood.service
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[Unit]
Description=Flood rTorrent Web UI
Description=Flood: rTorrent Web UI
After=network.target

[Service]
Expand Down
3 changes: 2 additions & 1 deletion manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ admindoc = "https://github.com/jesec/flood/wiki"
code = "https://github.com/jesec/flood"

[integration]
yunohost = ">= 11.2"
yunohost = ">= 11.2.30"
helpers_version = "2.1"
architectures = [ "amd64", "arm64" ]
multi_instance = false
ldap = false
Expand Down
14 changes: 1 addition & 13 deletions scripts/_common.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
#!/bin/bash

#=================================================
# COMMON VARIABLES
#=================================================

#=================================================
# PERSONAL HELPERS
#=================================================

#=================================================
# EXPERIMENTAL HELPERS
#=================================================

#=================================================
# FUTURE OFFICIAL HELPERS
# COMMON VARIABLES AND CUSTOM HELPERS
#=================================================
19 changes: 8 additions & 11 deletions scripts/backup
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,31 @@
source ../settings/scripts/_common.sh
source /usr/share/yunohost/helpers

#=================================================
# DECLARE DATA AND CONF FILES TO BACKUP
#=================================================
ynh_print_info --message="Declaring files to be backed up..."
ynh_print_info "Declaring files to be backed up..."

#=================================================
# BACKUP THE APP MAIN DIR
#=================================================

ynh_backup --src_path="$install_dir"
ynh_backup "$install_dir"

#=================================================
# BACKUP THE DATA DIR
#=================================================

ynh_backup --src_path="$data_dir" --is_big
ynh_backup "$data_dir"

#=================================================
# BACKUP THE NGINX CONFIGURATION
# SYSTEM CONFIGURATION
#=================================================

ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf"

ynh_backup --src_path="/etc/systemd/system/$app.service"
ynh_backup --src_path="/etc/systemd/system/$app-rtorrent.service"
ynh_backup "/etc/systemd/system/$app.service"
ynh_backup "/etc/systemd/system/$app-rtorrent.service"

#=================================================
# END OF SCRIPT
#=================================================

ynh_print_info --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)."
ynh_print_info "Backup script completed for $app. (YunoHost will then actually copy those files to the archive)."
32 changes: 9 additions & 23 deletions scripts/change_url
Original file line number Diff line number Diff line change
@@ -1,55 +1,41 @@
#!/bin/bash

#=================================================
# GENERIC STARTING
#=================================================
# IMPORT GENERIC HELPERS
#=================================================

source _common.sh
source /usr/share/yunohost/helpers

#=================================================
# STANDARD MODIFICATIONS
#=================================================
# STOP SYSTEMD SERVICE
#=================================================
ynh_script_progression --message="Stopping a systemd service..."
ynh_script_progression "Stopping $app's systemd service..."

ynh_systemd_action --service_name=$app --action="stop"
ynh_systemctl --service=$app --action="stop"

#=================================================
# MODIFY URL IN NGINX CONF
#=================================================
ynh_script_progression --message="Updating NGINX web server configuration..."
ynh_script_progression "Updating NGINX web server configuration..."

ynh_change_url_nginx_config
ynh_config_change_url_nginx

#=================================================
# SPECIFIC MODIFICATIONS
#=================================================
# SETUP SYSTEMD
#=================================================
ynh_script_progression --message="Upgrading systemd configuration..."
ynh_script_progression "Upgrading systemd configuration..."

path=$new_path
domain=$new_domain

# Create a dedicated systemd config
ynh_add_systemd_config --service=$app --template="flood.service"
ynh_config_add_systemd --template="flood.service"

#=================================================
# GENERIC FINALISATION
#=================================================
# START SYSTEMD SERVICE
#=================================================
ynh_script_progression --message="Starting a systemd service..."
ynh_script_progression "Starting $app's systemd service..."

# Start a systemd service
ynh_systemd_action --service_name=$app --action="start"
ynh_systemctl --service=$app --action="start"

#=================================================
# END OF SCRIPT
#=================================================

ynh_script_progression --message="Change of URL completed for $app"
ynh_script_progression "Change of URL completed for $app"
Loading