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

Merge pull request #22 from YunoHost-Apps/linter

fix linter
This commit is contained in:
Éric Gaspar 2022-04-09 15:02:24 +02:00 committed by GitHub
commit 76c0bddb06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 7 deletions

View file

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

View file

@ -34,9 +34,9 @@ app=$YNH_APP_INSTANCE_NAME
#=================================================
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
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_webpath_available --domain=$domain --path_url=$path_url \
|| ynh_die --message="Path not available: ${domain}${path_url}"
test ! -d /usr/share/mailman3-web \
|| ynh_die --message="There is already an installation present at /usr/share/mailman3-web?"