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

Cleaning up

This commit is contained in:
ericgaspar 2021-03-19 18:23:36 +01:00
parent f6e24cd953
commit a5b51aeabd
No known key found for this signature in database
GPG key ID: 574F281483054D44
5 changed files with 7 additions and 20 deletions

View file

@ -24,8 +24,8 @@ Grocy is a web-based self-hosted groceries & household management solution for y
## Configuration
Default login
user: **admin**
password: **admin**
* user: **admin**
* password: **admin**
## Documentation

View file

@ -24,8 +24,8 @@ Grocy is a web-based self-hosted groceries & household management solution for y
## Configuration
Connexion par défaut
utilisateur : **admin**
mot de passe : **admin**
* utilisateur : **admin**
* mot de passe : **admin**
## Documentation

View file

@ -14,7 +14,7 @@
"email": ""
},
"requirements": {
"yunohost": ">= 4.0.0"
"yunohost": ">= 4.1.7"
},
"multi_instance": true,
"services": [
@ -25,10 +25,6 @@
"install": [{
"name": "domain",
"type": "domain",
"help": {
"en": "Grocy needs to be installed in its own root domain or subdomain.",
"fr": "Grocy doit être installé dans son propre domaine racine ou sous-domaine."
},
"example": "grocy.example.com"
},
{
@ -44,10 +40,6 @@
{
"name": "is_public",
"type": "boolean",
"help": {
"en": "If enabled, Grocy will be accessible by people who do not have an account. This can be changed later via the webadmin.",
"fr": "Si cette case est cochée, Grocy sera accessible aux personnes nayant pas de compte. Vous pourrez changer ceci plus tard via la webadmin."
},
"default": true
}
]

View file

@ -85,9 +85,7 @@ phpversion=$(ynh_app_setting_get --app="$app" --key=phpversion)
# MODIFY A CONFIG FILE
#=================================================
cp -a ../conf/config-dist.php "$final_path/data/config.php"
ynh_replace_string --match_string="__LANGUAGE__" --replace_string="$language" --target_file="$final_path/data/config.php"
ynh_add_config --template="../conf/config-dist.php" --destination="$final_path/data/config.php"
#=================================================
# STORE THE CONFIG FILE CHECKSUM

View file

@ -115,10 +115,7 @@ ynh_add_fpm_config --package="$extra_php_dependencies"
# MODIFY A CONFIG FILE
#=================================================
cp -a ../conf/config-dist.php "$final_path/data/config.php"
ynh_replace_string --match_string="__LANGUAGE__" --replace_string="$language" --target_file="$final_path/data/config.php"
ynh_add_config --template="../conf/config-dist.php" --destination="$final_path/data/config.php"
#=================================================
# SECURE FILES AND DIRECTORIES