mirror of
https://github.com/YunoHost-Apps/mineweb_ynh.git
synced 2024-09-03 19:45:54 +02:00
Testing (#21)
* 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:
parent
e17a0d2542
commit
8059131cb1
6 changed files with 45 additions and 40 deletions
22
README.md
22
README.md
|
@ -5,7 +5,7 @@ It shall NOT be edited by hand.
|
||||||
|
|
||||||
# MineWeb for YunoHost
|
# MineWeb for YunoHost
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/mineweb)  
|
[](https://dash.yunohost.org/appci/app/mineweb)  
|
||||||
[](https://install-app.yunohost.org/?app=mineweb)
|
[](https://install-app.yunohost.org/?app=mineweb)
|
||||||
|
|
||||||
*[Lire ce readme en français.](./README_fr.md)*
|
*[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.
|
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
|
## Screenshots
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Documentation and resources
|
## Documentation and resources
|
||||||
|
|
||||||
* Official app website: https://mineweb.org/
|
* Official app website: <https://mineweb.org/>
|
||||||
* Official admin documentation: https://docs.mineweb.org/
|
* Official admin documentation: <https://docs.mineweb.org/>
|
||||||
* Upstream app code repository: https://github.com/MineWeb/MineWebCMS/
|
* Upstream app code repository: <https://github.com/MineWeb/MineWebCMS/>
|
||||||
* YunoHost documentation for this app: https://yunohost.org/app_mineweb
|
* YunoHost documentation for this app: <https://yunohost.org/app_mineweb>
|
||||||
* Report a bug: https://github.com/YunoHost-Apps/mineweb_ynh/issues
|
* Report a bug: <https://github.com/YunoHost-Apps/mineweb_ynh/issues>
|
||||||
|
|
||||||
## Developer info
|
## Developer info
|
||||||
|
|
||||||
Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/mineweb_ynh/tree/testing).
|
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.
|
To try the testing branch, please proceed like that.
|
||||||
```
|
|
||||||
|
``` bash
|
||||||
sudo yunohost app install https://github.com/YunoHost-Apps/mineweb_ynh/tree/testing --debug
|
sudo yunohost app install https://github.com/YunoHost-Apps/mineweb_ynh/tree/testing --debug
|
||||||
or
|
or
|
||||||
sudo yunohost app upgrade mineweb -u https://github.com/YunoHost-Apps/mineweb_ynh/tree/testing --debug
|
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>
|
||||||
|
|
28
README_fr.md
28
README_fr.md
|
@ -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
|
# MineWeb pour YunoHost
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/mineweb)  
|
[](https://dash.yunohost.org/appci/app/mineweb)  
|
||||||
[](https://install-app.yunohost.org/?app=mineweb)
|
[](https://install-app.yunohost.org/?app=mineweb)
|
||||||
|
|
||||||
*[Read this readme in english.](./README.md)*
|
*[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.
|
> *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.*
|
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.
|
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
|
## Captures d'écran
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Documentations et ressources
|
## Documentations et ressources
|
||||||
|
|
||||||
* Site officiel de l'app : https://mineweb.org/
|
* Site officiel de l'app : <https://mineweb.org/>
|
||||||
* Documentation officielle de l'admin : https://docs.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/
|
* Dépôt de code officiel de l'app : <https://github.com/MineWeb/MineWebCMS/>
|
||||||
* Documentation YunoHost pour cette app : https://yunohost.org/app_mineweb
|
* Documentation YunoHost pour cette app : <https://yunohost.org/app_mineweb>
|
||||||
* Signaler un bug : https://github.com/YunoHost-Apps/mineweb_ynh/issues
|
* Signaler un bug : <https://github.com/YunoHost-Apps/mineweb_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/mineweb_ynh/tree/testing).
|
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.
|
Pour essayer la branche testing, procédez comme suit.
|
||||||
```
|
|
||||||
|
``` bash
|
||||||
sudo yunohost app install https://github.com/YunoHost-Apps/mineweb_ynh/tree/testing --debug
|
sudo yunohost app install https://github.com/YunoHost-Apps/mineweb_ynh/tree/testing --debug
|
||||||
ou
|
ou
|
||||||
sudo yunohost app upgrade mineweb -u https://github.com/YunoHost-Apps/mineweb_ynh/tree/testing --debug
|
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>
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"en": "Customizable and intuitive CMS",
|
"en": "Customizable and intuitive CMS",
|
||||||
"fr": "CMS personnalisable et intuitif"
|
"fr": "CMS personnalisable et intuitif"
|
||||||
},
|
},
|
||||||
"version": "1.15.1~ynh1",
|
"version": "1.15.1~ynh2",
|
||||||
"url": "https://mineweb.org/",
|
"url": "https://mineweb.org/",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "AGPL-3.0-only",
|
"license": "AGPL-3.0-only",
|
||||||
|
@ -20,12 +20,12 @@
|
||||||
"email": "liberodark@gmail.com"
|
"email": "liberodark@gmail.com"
|
||||||
},
|
},
|
||||||
"requirements": {
|
"requirements": {
|
||||||
"yunohost": ">= 4.3.0"
|
"yunohost": ">= 11.0.9"
|
||||||
},
|
},
|
||||||
"multi_instance": true,
|
"multi_instance": true,
|
||||||
"services": [
|
"services": [
|
||||||
"nginx",
|
"nginx",
|
||||||
"php7.3-fpm",
|
"php7.4-fpm",
|
||||||
"mysql"
|
"mysql"
|
||||||
],
|
],
|
||||||
"arguments": {
|
"arguments": {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
# COMMON VARIABLES
|
# COMMON VARIABLES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
YNH_PHP_VERSION="7.3"
|
YNH_PHP_VERSION="7.4"
|
||||||
|
|
||||||
# dependencies used by the app
|
# dependencies used by the app
|
||||||
pkg_dependencies="php${YNH_PHP_VERSION}-zip php${YNH_PHP_VERSION}-gd php${YNH_PHP_VERSION}-curl"
|
pkg_dependencies="php${YNH_PHP_VERSION}-zip php${YNH_PHP_VERSION}-gd php${YNH_PHP_VERSION}-curl"
|
||||||
|
|
|
@ -38,12 +38,6 @@ test ! -d $final_path || ynh_die --message="There is already a directory: $final
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STANDARD RESTORATION STEPS
|
# STANDARD RESTORATION STEPS
|
||||||
#=================================================
|
|
||||||
# RESTORE THE NGINX CONFIGURATION
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RECREATE THE DEDICATED USER
|
# RECREATE THE DEDICATED USER
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -63,6 +57,14 @@ chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
chown -R $app:www-data "$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
|
# 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"
|
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_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||||
ynh_install_app_dependencies $pkg_dependencies
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE MYSQL DATABASE
|
# RESTORE THE MYSQL DATABASE
|
||||||
|
|
|
@ -86,7 +86,7 @@ then
|
||||||
ynh_script_progression --message="Upgrading source files..." --weight=7
|
ynh_script_progression --message="Upgrading source files..." --weight=7
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# 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
|
fi
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
|
@ -119,9 +119,9 @@ ynh_add_fpm_config
|
||||||
#=================================================
|
#=================================================
|
||||||
# MODIFY A CONFIG FILE
|
# 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
|
# MODIFY FIRST.CTP
|
||||||
|
|
Loading…
Add table
Reference in a new issue