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

Bullseye (#20)

* set relative path for --keep opt

* Auto-update README

* Fix

* Update restore

* Update restore

Co-authored-by: yunohost-bot <yunohost@yunohost.org>
This commit is contained in:
Éric Gaspar 2022-08-17 18:35:18 +02:00 committed by GitHub
parent 848138eaf0
commit 24f814edd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 45 additions and 39 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)*
@ -23,28 +23,28 @@ Vous pourrez tenir vos joueurs au courant des actualités, leur faire acheter de
**Shipped version:** 1.15.1~ynh1
## 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~ynh1
## 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

@ -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

@ -34,16 +34,11 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
#=================================================
ynh_script_progression --message="Validating restoration parameters..." --weight=1
test ! -d $final_path || ynh_die --message="There is already a directory: $final_path "
test ! -d $final_path \
|| ynh_die --message="There is already a directory: $final_path "
#=================================================
# 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 +58,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 +74,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