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

[autopatch] Automatic patch attempt for helpers 2.1 #41

Open
wants to merge 2 commits into
base: testing
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ALL_README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# 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)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ It shall NOT be edited by hand.

MantisBT is an open source issue tracker that provides a delicate balance between simplicity and power. Users are able to get started in minutes and start managing their projects while collaborating with their teammates and clients effectively.

**Shipped version:** 2.25.7~ynh2
**Shipped version:** 2.25.7~ynh3

**Demo:** <https://mantisbt.org/bugs/my_view_page.php>

Expand Down
49 changes: 49 additions & 0 deletions README_es.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<!--
Este archivo README esta generado automaticamente<https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
No se debe editar a mano.
-->

# Mantis para Yunohost

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

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

*[Leer este README en otros idiomas.](./ALL_README.md)*

> *Este paquete le permite instalarMantis 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

MantisBT is an open source issue tracker that provides a delicate balance between simplicity and power. Users are able to get started in minutes and start managing their projects while collaborating with their teammates and clients effectively.

**Versión actual:** 2.25.7~ynh3

**Demo:** <https://mantisbt.org/bugs/my_view_page.php>

## Capturas

![Captura de Mantis](./doc/screenshots/modern_my_view.png)

## Documentaciones y recursos

- Sitio web oficial: <https://mantisbt.org/>
- Documentación administrador oficial: <https://mantisbt.org/documentation.php>
- Repositorio del código fuente oficial de la aplicación : <https://github.com/mantisbt/mantisbt/>
- Catálogo YunoHost: <https://apps.yunohost.org/app/mantis>
- Reportar un error: <https://github.com/YunoHost-Apps/mantis_ynh/issues>

## Información para desarrolladores

Por favor enviar sus correcciones a la [`branch testing`](https://github.com/YunoHost-Apps/mantis_ynh/tree/testing

Para probar la rama `testing`, sigue asÍ:

```bash
sudo yunohost app install https://github.com/YunoHost-Apps/mantis_ynh/tree/testing --debug
o
sudo yunohost app upgrade mantis -u https://github.com/YunoHost-Apps/mantis_ynh/tree/testing --debug
```

**Mas informaciones sobre el empaquetado de aplicaciones:** <https://yunohost.org/packaging_apps>
2 changes: 1 addition & 1 deletion README_eu.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ EZ editatu eskuz.

MantisBT is an open source issue tracker that provides a delicate balance between simplicity and power. Users are able to get started in minutes and start managing their projects while collaborating with their teammates and clients effectively.

**Paketatutako bertsioa:** 2.25.7~ynh2
**Paketatutako bertsioa:** 2.25.7~ynh3

**Demoa:** <https://mantisbt.org/bugs/my_view_page.php>

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

MantisBT is an open source issue tracker that provides a delicate balance between simplicity and power. Users are able to get started in minutes and start managing their projects while collaborating with their teammates and clients effectively.

**Version incluse :** 2.25.7~ynh2
**Version incluse :** 2.25.7~ynh3

**Démo :** <https://mantisbt.org/bugs/my_view_page.php>

Expand Down
2 changes: 1 addition & 1 deletion README_gl.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ NON debe editarse manualmente.

MantisBT is an open source issue tracker that provides a delicate balance between simplicity and power. Users are able to get started in minutes and start managing their projects while collaborating with their teammates and clients effectively.

**Versión proporcionada:** 2.25.7~ynh2
**Versión proporcionada:** 2.25.7~ynh3

**Demo:** <https://mantisbt.org/bugs/my_view_page.php>

Expand Down
4 changes: 2 additions & 2 deletions README_zh_Hans.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
请勿手动编辑。
-->

# YunoHost Mantis
# YunoHost 上的 Mantis

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

Expand All @@ -18,7 +18,7 @@

MantisBT is an open source issue tracker that provides a delicate balance between simplicity and power. Users are able to get started in minutes and start managing their projects while collaborating with their teammates and clients effectively.

**分发版本:** 2.25.7~ynh2
**分发版本:** 2.25.7~ynh3

**演示:** <https://mantisbt.org/bugs/my_view_page.php>

Expand Down
4 changes: 0 additions & 4 deletions conf/extra_php-fpm.conf

This file was deleted.

2 changes: 1 addition & 1 deletion conf/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ location __PATH__/ {
try_files $uri $uri/ index.php;
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
fastcgi_pass unix:/var/run/php/php__PHP_VERSION__-fpm-__APP__.sock;

#fastcgi_index index.php;
include fastcgi_params;
Expand Down
25 changes: 0 additions & 25 deletions config_panel.toml

This file was deleted.

4 changes: 3 additions & 1 deletion manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ code = "https://github.com/mantisbt/mantisbt/"
cpe = "cpe:2.3:a:jenkins:mantis"

[integration]
yunohost = ">= 11.2"
yunohost = ">= 11.2.18"
helpers_version = "2.1"
architectures = "all"
multi_instance = true
ldap = true
Expand Down Expand Up @@ -63,6 +64,7 @@ ram.runtime = "50M"
[resources.system_user]

[resources.install_dir]
group = "www-data:r-x"

[resources.permissions]
main.url = "/"
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
#=================================================
23 changes: 7 additions & 16 deletions scripts/backup
Original file line number Diff line number Diff line change
@@ -1,43 +1,34 @@
#!/bin/bash

#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================

# Keep this path for calling _common.sh inside the execution's context of backup and restore scripts
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"

#=================================================
# 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/php/$phpversion/fpm/pool.d/$app.conf"
ynh_backup "/etc/php/$php_version/fpm/pool.d/$app.conf"

#=================================================
# BACKUP THE MYSQL DATABASE
#=================================================
ynh_print_info --message="Backing up the MySQL database..."
ynh_print_info "Backing up the MySQL database..."

ynh_mysql_dump_db --database="$db_name" > db.sql
ynh_mysql_dump_db > db.sql

#=================================================
# 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)."
16 changes: 4 additions & 12 deletions scripts/change_url
Original file line number Diff line number Diff line change
@@ -1,32 +1,24 @@
#!/bin/bash

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

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

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

ynh_change_url_nginx_config
ynh_config_change_url_nginx

#=================================================
# MODIFY A CONFIG FILE
#=================================================

random=$(ynh_string_random --length=20)
ynh_add_config --template="config_inc.php" --destination="$install_dir/config/config_inc.php"
ynh_config_add --template="config_inc.php" --destination="$install_dir/config/config_inc.php"

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

ynh_script_progression --message="Change of URL completed for $app" --last
ynh_script_progression "Change of URL completed for $app"
95 changes: 0 additions & 95 deletions scripts/config

This file was deleted.

Loading