mirror of
https://github.com/YunoHost-Apps/libreto_ynh.git
synced 2024-09-03 19:36:14 +02:00
commit
67dd1429a1
4 changed files with 24 additions and 17 deletions
|
@ -5,7 +5,8 @@ It shall NOT be edited by hand.
|
||||||
|
|
||||||
# Libreto for YunoHost
|
# Libreto for YunoHost
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/libreto)  
|
[](https://dash.yunohost.org/appci/app/libreto)  
|
||||||
|
|
||||||
[](https://install-app.yunohost.org/?app=libreto)
|
[](https://install-app.yunohost.org/?app=libreto)
|
||||||
|
|
||||||
*[Lire ce readme en français.](./README_fr.md)*
|
*[Lire ce readme en français.](./README_fr.md)*
|
||||||
|
|
21
README_fr.md
21
README_fr.md
|
@ -5,15 +5,16 @@ It shall NOT be edited by hand.
|
||||||
|
|
||||||
# Libreto pour YunoHost
|
# Libreto pour YunoHost
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/libreto)  
|
[](https://dash.yunohost.org/appci/app/libreto)  
|
||||||
|
|
||||||
[](https://install-app.yunohost.org/?app=libreto)
|
[](https://install-app.yunohost.org/?app=libreto)
|
||||||
|
|
||||||
*[Read this readme in english.](./README.md)*
|
*[Read this readme in english.](./README.md)*
|
||||||
|
|
||||||
> *Ce package vous permet d'installer Libreto rapidement et simplement sur un serveur YunoHost.
|
> *Ce package vous permet d’installer Libreto 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.*
|
||||||
|
|
||||||
## Vue d'ensemble
|
## Vue d’ensemble
|
||||||
|
|
||||||
Libreto est un carnet de note collaboratif fondé sur etherpad. Il peut devenir un mini-site, le carnet de bord d'un workshop ou le support de rédaction d'un livre collectif.
|
Libreto est un carnet de note collaboratif fondé sur etherpad. Il peut devenir un mini-site, le carnet de bord d'un workshop ou le support de rédaction d'un livre collectif.
|
||||||
|
|
||||||
|
@ -22,15 +23,15 @@ Libreto est un carnet de note collaboratif fondé sur etherpad. Il peut devenir
|
||||||
|
|
||||||
**Démo :** https://libreto.net
|
**Démo :** https://libreto.net
|
||||||
|
|
||||||
## Captures d'écran
|
## Captures d’écran
|
||||||
|
|
||||||

|

|
||||||

|

|
||||||
|
|
||||||
## Documentations et ressources
|
## Documentations et ressources
|
||||||
|
|
||||||
* Site officiel de l'app : <https://libreto.net>
|
* Site officiel de l’app : <https://libreto.net>
|
||||||
* Dépôt de code officiel de l'app : <https://github.com/Ventricule/libreto>
|
* Dépôt de code officiel de l’app : <https://github.com/Ventricule/libreto>
|
||||||
* Documentation YunoHost pour cette app : <https://yunohost.org/app_libreto>
|
* Documentation YunoHost pour cette app : <https://yunohost.org/app_libreto>
|
||||||
* Signaler un bug : <https://github.com/YunoHost-Apps/libreto_ynh/issues>
|
* Signaler un bug : <https://github.com/YunoHost-Apps/libreto_ynh/issues>
|
||||||
|
|
||||||
|
@ -46,4 +47,4 @@ ou
|
||||||
sudo yunohost app upgrade libreto -u https://github.com/YunoHost-Apps/libreto_ynh/tree/testing --debug
|
sudo yunohost app upgrade libreto -u https://github.com/YunoHost-Apps/libreto_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>
|
|
@ -68,12 +68,15 @@ ynh_system_user_create --username=$app --home_dir="$final_path"
|
||||||
ynh_script_progression --message="Setting up source files..." --weight=4
|
ynh_script_progression --message="Setting up source files..." --weight=4
|
||||||
|
|
||||||
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
||||||
|
|
||||||
# Note: We use git instead of ynh_setup_source, cause this repo use submodules
|
# Note: We use git instead of ynh_setup_source, cause this repo use submodules
|
||||||
git clone https://github.com/zamentur/libreto.git "$final_path" --quiet
|
git clone https://github.com/zamentur/libreto.git "$final_path" --quiet
|
||||||
|
|
||||||
|
chown -R $app:www-data "$final_path"
|
||||||
|
|
||||||
pushd "$final_path"
|
pushd "$final_path"
|
||||||
git checkout $COMMIT --quiet
|
ynh_exec_as $app git checkout $COMMIT --quiet
|
||||||
git submodule update --init --recursive --quiet
|
ynh_exec_as $app git submodule update --init --recursive --quiet
|
||||||
popd
|
popd
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
|
|
|
@ -75,12 +75,14 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
then
|
||||||
ynh_script_progression --message="Upgrading source files..." --weight=5
|
ynh_script_progression --message="Upgrading source files..." --weight=5
|
||||||
|
|
||||||
|
chown -R $app:www-data "$final_path"
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
pushd "$final_path"
|
pushd "$final_path"
|
||||||
git checkout master
|
ynh_exec_as $app git checkout master
|
||||||
git pull --quiet
|
ynh_exec_as $app git pull --quiet
|
||||||
git checkout $COMMIT --quiet
|
ynh_exec_as $app git checkout $COMMIT --quiet
|
||||||
git submodule update --init --recursive --quiet
|
ynh_exec_as $app git submodule update --init --recursive --quiet
|
||||||
popd
|
popd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue