1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mailman3_ynh.git synced 2024-09-03 19:36:17 +02:00

fix linter

This commit is contained in:
ericgaspar 2022-04-09 10:29:30 +02:00
parent 95abca0959
commit 02fba0c81c
3 changed files with 4 additions and 7 deletions

View file

@ -23,7 +23,7 @@
"url": "https://decentral1.se/" "url": "https://decentral1.se/"
}, },
"requirements": { "requirements": {
"yunohost": ">= 4.1.3" "yunohost": ">= 4.3.0"
}, },
"multi_instance": false, "multi_instance": false,
"services": [ "services": [
@ -33,8 +33,7 @@
"install" : [ "install" : [
{ {
"name": "domain", "name": "domain",
"type": "domain", "type": "domain"
"example": "example.com"
}, },
{ {
"name": "is_public", "name": "is_public",

View file

@ -34,9 +34,9 @@ app=$YNH_APP_INSTANCE_NAME
#================================================= #=================================================
ynh_script_progression --message="Validating installation parameters..." ynh_script_progression --message="Validating installation parameters..."
test ! -e /usr/share/$app-web || ynh_die --message="Mailman3 is already installed !" test ! -e /usr/share/$app-web || ynh_die --message="Mailman3 is already installed!"
test ! -e /etc/$app || ynh_die --message="Mailman3 is already installed !" test ! -e /etc/$app || ynh_die --message="Mailman3 is already installed!"
# Register (book) web path # Register (book) web path
ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url

View file

@ -39,8 +39,6 @@ db_user_web=$db_name_web
#================================================= #=================================================
ynh_script_progression --message="Validating restoration parameters..." ynh_script_progression --message="Validating restoration parameters..."
ynh_webpath_available --domain=$domain --path_url=$path_url \
|| ynh_die --message="Path not available: ${domain}${path_url}"
test ! -d /usr/share/mailman3-web \ test ! -d /usr/share/mailman3-web \
|| ynh_die --message="There is already an installation present at /usr/share/mailman3-web?" || ynh_die --message="There is already an installation present at /usr/share/mailman3-web?"