1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/commento_ynh.git synced 2024-09-03 18:16:16 +02:00
This commit is contained in:
Éric Gaspar 2023-03-02 12:06:05 +01:00
parent d6e088b55c
commit bd99812ac2
6 changed files with 10 additions and 63 deletions

View file

@ -13,4 +13,4 @@ services = ["__APP__"]
yes = "true"
no = "false"
help = "Used to disable new dashboard registrations. Useful if you are the only person using Commento on your server. Does not impact the creation of accounts for your readers."
bind = "COMMENTO_FORBID_NEW_OWNERS:__FINALPATH__/commento.env"
bind = "COMMENTO_FORBID_NEW_OWNERS:__INSTALL_DIR__/commento.env"

View file

View file

@ -1,56 +0,0 @@
{
"name": "Commento",
"id": "commento",
"packaging_format": 1,
"description": {
"en": "Fast, privacy-focused commenting platform",
"fr": "Plateforme de commentaires rapide axée sur la confidentialité"
},
"version": "1.8.7~ynh1",
"url": "https://commento.io/",
"upstream": {
"license": "MIT",
"website": "https://commento.io/",
"demo": "https://demo.souradip.com/chat.html",
"admindoc": "https://docs.commento.io/",
"code": "https://github.com/souramoo/commentoplusplus"
},
"license": "MIT",
"maintainer": {
"name": "eric_G",
"email": ""
},
"requirements": {
"yunohost": ">= 11.1.12"
},
"multi_instance": true,
"services": [
"nginx",
"mysql"
],
"arguments": {
"install" : [
{
"name": "domain",
"type": "domain"
},
{
"name": "admin",
"type": "user"
},
{
"name": "is_public",
"type": "boolean",
"help": {
"en": "If enabled, Commento 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, Commento sera accessible aux personnes nayant pas de compte. Vous pourrez changer ceci plus tard via la webadmin."
},
"default": true
},
{
"name": "password",
"type": "password"
}
]
}
}

View file

@ -5,7 +5,7 @@ name = "Commento"
description.en = "Fast, privacy-focused commenting platform"
description.fr = "Plateforme de commentaires rapide axée sur la confidentialité"
version = "1.8.7~ynh1"
version = "1.8.7~ynh2"
maintainers = ["eric_G"]
@ -34,8 +34,8 @@ ram.runtime = "50M"
type = "user"
[install.init_main_permission]
help.en = "If enabled, Commento will be accessible by people who do not have an account. This can be changed later via the webadmin."
help.fr = "Si cette case est cochée, Commento sera accessible aux personnes nayant pas de compte. Vous pourrez changer ceci plus tard via la webadmin."
help.en = "visitors selected, Commento will be accessible by people who do not have an account. This can be changed later via the webadmin."
help.fr = "visiteurs selectionné, Commento sera accessible aux personnes nayant pas de compte. Vous pourrez changer ceci plus tard via la webadmin."
type = "group"
default = "visitors"

View file

@ -31,10 +31,10 @@ ynh_change_url_nginx_config
ynh_script_progression --message="Adding a configuration file..." --weight=1
domain="$new_domain"
ynh_add_config --template="../conf/.env" --destination="$final_path/commento.env"
ynh_add_config --template="../conf/.env" --destination="$install_dir/commento.env"
chmod 400 "$final_path/commento.env"
chown $app:$app "$final_path/commento.env"
chmod 400 "$install_dir/commento.env"
chown $app:$app "$install_dir/commento.env"
#=================================================
# GENERIC FINALISATION

View file

@ -0,0 +1,3 @@
test_format = 1.0
[default]