mirror of
https://github.com/YunoHost-Apps/mailman3_ynh.git
synced 2024-09-03 19:36:17 +02:00
commit
76c0bddb06
3 changed files with 4 additions and 7 deletions
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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?"
|
||||
|
||||
|
|
Loading…
Reference in a new issue