1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/sogo_ynh.git synced 2024-09-03 20:26:07 +02:00

Fix linter

This commit is contained in:
ericgaspar 2022-01-15 15:17:39 +01:00
parent 2fc174c575
commit 31d09adb51
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 5 additions and 33 deletions

View file

@ -4,10 +4,10 @@
"packaging_format": 1, "packaging_format": 1,
"license": "LGPL-2.1,GPL-2.0", "license": "LGPL-2.1,GPL-2.0",
"url": "https://sogo.nu/", "url": "https://sogo.nu/",
"version": "4.0.7-1~ynh2", "version": "5.0.1~ynh1",
"description": { "description": {
"en": "An opensource groupware for E-Mail, Contacts and Calender.", "en": "Opensource groupware for E-Mail, Contacts and Calender",
"fr": "Un groupware opensource pour les e-mail, contacts et calendrier" "fr": "Groupware opensource pour les e-mail, contacts et calendrier"
}, },
"maintainer": { "maintainer": {
"name": "Josué Tille", "name": "Josué Tille",
@ -30,29 +30,15 @@
"install" : [ "install" : [
{ {
"name": "domain", "name": "domain",
"type": "domain", "type": "domain"
"ask": {
"en": "Choose a domain name for SOGo",
"fr": "Choisissez un nom de domaine pour SOGo"
},
"example": "example.com"
}, },
{ {
"name": "admin", "name": "admin",
"type": "user", "type": "user"
"ask": {
"en": "Choose an admin user",
"fr": "Choisissez ladministrateur"
},
"example": "johndoe"
}, },
{ {
"name": "is_public", "name": "is_public",
"type": "boolean", "type": "boolean",
"ask": {
"en": "Is it a public site ? To be able to use caldav and cardav you need to set as public.",
"fr": "Est-ce un site public ? Pour pouvoir utiliser caldav et cardav vous devz mettre en public."
},
"help": { "help": {
"en": "If it's not public, everybody which want to access to any page of SOGo need to be authenticated on the SSO. On the public mode anybody can access to the authentication page. The shared calendar will be also accessible by anybody who has this link", "en": "If it's not public, everybody which want to access to any page of SOGo need to be authenticated on the SSO. On the public mode anybody can access to the authentication page. The shared calendar will be also accessible by anybody who has this link",
"fr": "Si n'est pas publique, n'importe qui veux accéder à n'importe quelle page de SOGo doit être authentifié dans le SSO. Dans le mode publique n'importe qui peut accéder à la page d'authentification de SOGo. Les agenda partagé seront aussi accessible par n'import qui qui à ce liens." "fr": "Si n'est pas publique, n'importe qui veux accéder à n'importe quelle page de SOGo doit être authentifié dans le SSO. Dans le mode publique n'importe qui peut accéder à la page d'authentification de SOGo. Les agenda partagé seront aussi accessible par n'import qui qui à ce liens."

View file

@ -36,7 +36,6 @@ smtp_port=$(ynh_find_port --port $((port+1)))
# STORE SETTINGS FROM MANIFEST # STORE SETTINGS FROM MANIFEST
ynh_script_progression --message="Storing installation settings..." ynh_script_progression --message="Storing installation settings..."
ynh_app_setting_set --app $app --key admin --value $admin ynh_app_setting_set --app $app --key admin --value $admin
ynh_app_setting_set --app $app --key is_public --value $is_public
ynh_app_setting_set --app $app --key smtp_port --value $smtp_port ynh_app_setting_set --app $app --key smtp_port --value $smtp_port
ynh_app_setting_set --app $app --key web_port --value $port ynh_app_setting_set --app $app --key web_port --value $port

View file

@ -20,7 +20,6 @@ ynh_script_progression --message="Loading installation settings..."
domain=$(ynh_app_setting_get --app $app --key domain) domain=$(ynh_app_setting_get --app $app --key domain)
path_url=$(ynh_normalize_url_path --path_url $(ynh_app_setting_get --app $app --key path)) path_url=$(ynh_normalize_url_path --path_url $(ynh_app_setting_get --app $app --key path))
admin=$(ynh_app_setting_get --app $app --key admin) admin=$(ynh_app_setting_get --app $app --key admin)
is_public=$(ynh_app_setting_get --app $app --key is_public)
port=$(ynh_app_setting_get --app $app --key web_port) port=$(ynh_app_setting_get --app $app --key web_port)
smtp_port=$(ynh_app_setting_get --app $app --key smtp_port) smtp_port=$(ynh_app_setting_get --app $app --key smtp_port)
db_name=$(ynh_app_setting_get --app $app --key db_name) db_name=$(ynh_app_setting_get --app $app --key db_name)
@ -43,18 +42,6 @@ ynh_abort_if_errors
ynh_script_progression --message="Fixing old settings..." --weight=1 ynh_script_progression --message="Fixing old settings..." --weight=1
if [[ ${is_public,,*} = "yes" ]]
then
is_public=1
ynh_app_setting_set --app $app --key is_public --value 1
fi
if [[ ${is_public,,*} = "no" ]]
then
is_public=0
ynh_app_setting_set --app $app --key is_public --value 0
fi
if [[ -z $port ]] if [[ -z $port ]]
then then
# Find a port for SOGo # Find a port for SOGo