1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mineweb_ynh.git synced 2024-09-03 19:45:54 +02:00
* Update check_process

* Set badge to SVG

* Set badge to SVG

* Upgrade to 1.12.0 (#3)

* Upgrade to 1.13.0 (#5)

* Fix linter warnings

* Update manifest.json

* Cleaning up (#8)

* Cleaning up

* Update database.php

* [autopatch] Update issue and PR templates (#10)

* Testing (#9)

* Fix linter warnings

* [autopatch] Update issue and PR templates

Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>
Co-authored-by: Yunohost-Bot <>

* Fix (#11)

* Fix

* Update upgrade

* 1.14.1

* Auto-update README

* 1.14.3

* Auto-update README

* 1.14.5

* Auto-update README

* Update manifest.json

* 1.14.9 (#15)

* 1.14.9

* Update manifest.json

* Auto-update README

* 4.3 (#17)

* 1.15.1

* Auto-update README

* Bullseye (#20)

* set relative path for --keep opt

* Auto-update README

* Fix

* Update restore

* Update restore

Co-authored-by: yunohost-bot <yunohost@yunohost.org>

* Update manifest.json

* Auto-update README

Co-authored-by: YunoHost Bot <yunohost-bot@users.noreply.github.com>
Co-authored-by: Yunohost-Bot <>
Co-authored-by: yunohost-bot <yunohost@yunohost.org>
This commit is contained in:
Éric Gaspar 2022-08-17 18:37:16 +02:00 committed by GitHub
parent e17a0d2542
commit 8059131cb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 45 additions and 40 deletions

View file

@ -5,7 +5,7 @@ It shall NOT be edited by hand.
# MineWeb for YunoHost
[![Integration level](https://dash.yunohost.org/integration/mineweb.svg)](https://dash.yunohost.org/appci/app/mineweb) ![](https://ci-apps.yunohost.org/ci/badges/mineweb.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/mineweb.maintain.svg)
[![Integration level](https://dash.yunohost.org/integration/mineweb.svg)](https://dash.yunohost.org/appci/app/mineweb) ![Working status](https://ci-apps.yunohost.org/ci/badges/mineweb.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/mineweb.maintain.svg)
[![Install MineWeb with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=mineweb)
*[Lire ce readme en français.](./README_fr.md)*
@ -20,31 +20,31 @@ MineWeb est un CMS (c'est-à-dire un système de gestion de contenu), en plus si
Vous pourrez tenir vos joueurs au courant des actualités, leur faire acheter des articles sur la boutique... Vous pourrez personnaliser le CMS avec toutes sortes de thèmes ou plugins ! Ceux-ci sont disponibles sur le market ou peuvent être développés par vous-même.
**Shipped version:** 1.15.1~ynh1
**Shipped version:** 1.15.1~ynh2
## Screenshots
![](./doc/screenshots/features1_mb.png)
![Screenshot of MineWeb](./doc/screenshots/features1_mb.png)
## Documentation and resources
* Official app website: https://mineweb.org/
* Official admin documentation: https://docs.mineweb.org/
* Upstream app code repository: https://github.com/MineWeb/MineWebCMS/
* YunoHost documentation for this app: https://yunohost.org/app_mineweb
* Report a bug: https://github.com/YunoHost-Apps/mineweb_ynh/issues
* Official app website: <https://mineweb.org/>
* Official admin documentation: <https://docs.mineweb.org/>
* Upstream app code repository: <https://github.com/MineWeb/MineWebCMS/>
* YunoHost documentation for this app: <https://yunohost.org/app_mineweb>
* Report a bug: <https://github.com/YunoHost-Apps/mineweb_ynh/issues>
## Developer info
Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/mineweb_ynh/tree/testing).
To try the testing branch, please proceed like that.
```
``` bash
sudo yunohost app install https://github.com/YunoHost-Apps/mineweb_ynh/tree/testing --debug
or
sudo yunohost app upgrade mineweb -u https://github.com/YunoHost-Apps/mineweb_ynh/tree/testing --debug
```
**More info regarding app packaging:** https://yunohost.org/packaging_apps
**More info regarding app packaging:** <https://yunohost.org/packaging_apps>

View file

@ -1,10 +1,14 @@
<!--
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.
-->
# MineWeb pour YunoHost
[![Niveau d'intégration](https://dash.yunohost.org/integration/mineweb.svg)](https://dash.yunohost.org/appci/app/mineweb) ![](https://ci-apps.yunohost.org/ci/badges/mineweb.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/mineweb.maintain.svg)
[![Niveau d'intégration](https://dash.yunohost.org/integration/mineweb.svg)](https://dash.yunohost.org/appci/app/mineweb) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/mineweb.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/mineweb.maintain.svg)
[![Installer MineWeb avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=mineweb)
*[Read this readme in english.](./README.md)*
*[Lire ce readme en français.](./README_fr.md)*
> *Ce package vous permet d'installer MineWeb 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.*
@ -16,31 +20,31 @@ MineWeb est un CMS (c'est-à-dire un système de gestion de contenu), en plus si
Vous pourrez tenir vos joueurs au courant des actualités, leur faire acheter des articles sur la boutique... Vous pourrez personnaliser le CMS avec toutes sortes de thèmes ou plugins ! Ceux-ci sont disponibles sur le market ou peuvent être développés par vous-même.
**Version incluse :** 1.15.1~ynh1
**Version incluse :** 1.15.1~ynh2
## Captures d'écran
![](./doc/screenshots/features1_mb.png)
![Capture d'écran de MineWeb](./doc/screenshots/features1_mb.png)
## Documentations et ressources
* Site officiel de l'app : https://mineweb.org/
* Documentation officielle de l'admin : https://docs.mineweb.org/
* Dépôt de code officiel de l'app : https://github.com/MineWeb/MineWebCMS/
* Documentation YunoHost pour cette app : https://yunohost.org/app_mineweb
* Signaler un bug : https://github.com/YunoHost-Apps/mineweb_ynh/issues
* Site officiel de l'app : <https://mineweb.org/>
* Documentation officielle de l'admin : <https://docs.mineweb.org/>
* Dépôt de code officiel de l'app : <https://github.com/MineWeb/MineWebCMS/>
* Documentation YunoHost pour cette app : <https://yunohost.org/app_mineweb>
* Signaler un bug : <https://github.com/YunoHost-Apps/mineweb_ynh/issues>
## Informations pour les développeurs
Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/mineweb_ynh/tree/testing).
Pour essayer la branche testing, procédez comme suit.
```
``` bash
sudo yunohost app install https://github.com/YunoHost-Apps/mineweb_ynh/tree/testing --debug
ou
sudo yunohost app upgrade mineweb -u https://github.com/YunoHost-Apps/mineweb_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>

View file

@ -6,7 +6,7 @@
"en": "Customizable and intuitive CMS",
"fr": "CMS personnalisable et intuitif"
},
"version": "1.15.1~ynh1",
"version": "1.15.1~ynh2",
"url": "https://mineweb.org/",
"upstream": {
"license": "AGPL-3.0-only",
@ -20,12 +20,12 @@
"email": "liberodark@gmail.com"
},
"requirements": {
"yunohost": ">= 4.3.0"
"yunohost": ">= 11.0.9"
},
"multi_instance": true,
"services": [
"nginx",
"php7.3-fpm",
"php7.4-fpm",
"mysql"
],
"arguments": {

View file

@ -5,7 +5,7 @@
# COMMON VARIABLES
#=================================================
YNH_PHP_VERSION="7.3"
YNH_PHP_VERSION="7.4"
# dependencies used by the app
pkg_dependencies="php${YNH_PHP_VERSION}-zip php${YNH_PHP_VERSION}-gd php${YNH_PHP_VERSION}-curl"

View file

@ -38,12 +38,6 @@ test ! -d $final_path || ynh_die --message="There is already a directory: $final
#=================================================
# STANDARD RESTORATION STEPS
#=================================================
# RESTORE THE NGINX CONFIGURATION
#=================================================
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#=================================================
# RECREATE THE DEDICATED USER
#=================================================
@ -63,6 +57,14 @@ chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
#=================================================
# REINSTALL DEPENDENCIES
#=================================================
ynh_script_progression --message="Reinstalling dependencies..." --weight=1
# Define and install dependencies
ynh_install_app_dependencies $pkg_dependencies
#=================================================
# RESTORE THE PHP-FPM CONFIGURATION
#=================================================
@ -71,12 +73,11 @@ ynh_script_progression --message="Restoring the PHP-FPM configuration..." --weig
ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
#=================================================
# REINSTALL DEPENDENCIES
# RESTORE THE NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Reinstalling dependencies..." --weight=1
ynh_script_progression --message="Restoring the NGINX web server configuration..." --weight=1
# Define and install dependencies
ynh_install_app_dependencies $pkg_dependencies
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#=================================================
# RESTORE THE MYSQL DATABASE

View file

@ -86,7 +86,7 @@ then
ynh_script_progression --message="Upgrading source files..." --weight=7
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path" #--keep="$final_path/app/Config/database.php"
ynh_setup_source --dest_dir="$final_path" --keep="app/Config/database.php"
fi
chmod 750 "$final_path"
@ -119,9 +119,9 @@ ynh_add_fpm_config
#=================================================
# MODIFY A CONFIG FILE
#=================================================
ynh_script_progression --message="Updating a configuration file..."--weight=1
#ynh_script_progression --message="Updating a configuration file..."--weight=1
ynh_add_config --template="../conf/database.php" --destination="$final_path/app/Config/database.php"
#ynh_add_config --template="../conf/database.php" --destination="$final_path/app/Config/database.php"
#=================================================
# MODIFY FIRST.CTP