1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/grist_ynh.git synced 2024-09-03 20:36:18 +02:00

Merge pull request #11 from YunoHost-Apps/testing

Testing
This commit is contained in:
Florent 2023-12-02 12:26:46 +01:00 committed by GitHub
commit 2885c3036e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 42 additions and 9 deletions

View file

@ -31,8 +31,14 @@ More about the features can be found here: <https://github.com/gristlabs/grist-c
- You cannot log out from Grist, you have to log out from Yunohost to do that;
### Customize your configuration
**Shipped version:** 1.1.8~ynh1
You can add some configuration in the `/home/yunohost.app/grist/custom.env` file. Refer to the [Grist README](https://github.com/gristlabs/grist-core/#environment-variables) to know more.
:warn: Be sure of what you do, it may break your instance.
**Shipped version:** 1.1.9~ynh1
**Demo:** https://docs.getgrist.com

View file

@ -31,8 +31,14 @@ Plus d'information sur les fonctionnalités sont disponibles ici : <https://gith
- Vous ne pouvez pas vous déconnecter depuis Grist, pour ce faire, vous devez vous déconnecter de Yunohost;
### Personnaliser votre configuration
**Version incluse :** 1.1.8~ynh1
Vous pouvez ajouter quelques configurations dans le fichier `/home/yunohost.app/grist/custom.env`. Référez-vous au [README de Grist](https://github.com/gristlabs/grist-core/#environment-variables) pour en savoir plus.
:warn : Soyez sûr de ce que vous faîtes, cela peut casser votre instance.
**Version incluse :** 1.1.9~ynh1
**Démo :** https://docs.getgrist.com

2
conf/custom.env Normal file
View file

@ -0,0 +1,2 @@
# You can edit this file to set any custom environment variables
# Please refer to this documentation: https://github.com/gristlabs/grist-core/blob/main/README.md#environment-variables

View file

@ -1,3 +1,5 @@
# This file is not meant to be edited.
# Please place your environment variables in __DATA_DIR__/custom.env file
APP_HOME_URL=https://__DOMAIN__
GRIST_ORG_IN_PATH=true
GRIST_SANDBOX_FLAVOR=pyodide

View file

@ -11,6 +11,7 @@ ExecStart=__INSTALL_DIR__/sandbox/run.sh
StandardOutput=journal
StandardError=journal
EnvironmentFile=__INSTALL_DIR__/default.env
EnvironmentFile=__DATA_DIR__/custom.env
Environment="__YNH_NODE_LOAD_PATH__"
# Sandboxing options to harden security

View file

@ -11,10 +11,6 @@ name.fr = "Configuration principale"
services = ["__APP__"]
############################################################################
#### ABOUT SECTIONS
############################################################################
[main.customization]
name.fr = "Personnalisation de votre instance Grist"

View file

@ -12,3 +12,9 @@ More about the features can be found here: <https://github.com/gristlabs/grist-c
### Limitations
- You cannot log out from Grist, you have to log out from Yunohost to do that;
### Customize your configuration
You can add some configuration in the `/home/yunohost.app/grist/custom.env` file. Refer to the [Grist README](https://github.com/gristlabs/grist-core/#environment-variables) to know more.
:warn: Be sure of what you do, it may break your instance.

View file

@ -12,3 +12,9 @@ Plus d'information sur les fonctionnalités sont disponibles ici : <https://gith
### Limitations
- Vous ne pouvez pas vous déconnecter depuis Grist, pour ce faire, vous devez vous déconnecter de Yunohost;
### Personnaliser votre configuration
Vous pouvez ajouter quelques configurations dans le fichier `/home/yunohost.app/grist/custom.env`. Référez-vous au [README de Grist](https://github.com/gristlabs/grist-core/#environment-variables) pour en savoir plus.
:warn : Soyez sûr de ce que vous faîtes, cela peut casser votre instance.

View file

@ -7,7 +7,7 @@ name = "Grist"
description.en = "Modern relational spreadsheet"
description.fr = "Feuille de calcul relationnelle moderne"
version = "1.1.8~ynh1"
version = "1.1.9~ynh1"
maintainers = ["fflorent"]
@ -56,8 +56,8 @@ ram.runtime = "150M"
[resources.sources]
[resources.sources.main]
url = "https://github.com/gristlabs/grist-core/archive/refs/tags/v1.1.8.tar.gz"
sha256 = "b5ffff86808de1d3b30ab800150032d10e67adfde6f007a7c0a0942e73c4a56e"
url = "https://github.com/gristlabs/grist-core/archive/refs/tags/v1.1.9.tar.gz"
sha256 = "1b910a05beccf17d0bfd2d703b2346aa416adca2f791609c40a058f3b184e49f"
autoupdate.strategy = "latest_github_tag"

View file

@ -72,10 +72,14 @@ ynh_app_setting_set --app="$app" --key=redis_db --value="$redis_db"
ynh_script_progression --message="Adding a configuration file..." --weight=1
ynh_add_config --template="default.env" --destination="$install_dir/default.env"
ynh_add_config --template="custom.env" --destination="$data_dir/custom.env"
chmod 400 "$install_dir/default.env"
chown $app:$app "$install_dir/default.env"
chmod 700 "$data_dir/custom.env"
chown $app:$app "$data_dir/custom.env"
#=================================================
# GENERIC FINALIZATION
#=================================================

View file

@ -83,10 +83,14 @@ ynh_use_logrotate --non-append
ynh_script_progression --message="Updating a configuration file..." --weight=1
ynh_add_config --template="default.env" --destination="$install_dir/default.env"
ynh_add_config --template="custom.env" --destination="$data_dir/custom.env"
chmod 400 "$install_dir/default.env"
chown $app:$app "$install_dir/default.env"
chmod 700 "$data_dir/custom.env"
chown $app:$app "$data_dir/custom.env"
#=================================================
# START SYSTEMD SERVICE
#=================================================