diff --git a/manifest.json b/manifest.json index 38a568a..79dc0bd 100644 --- a/manifest.json +++ b/manifest.json @@ -14,7 +14,7 @@ "url": "http://jocelyn.delalande.fr" }, "requirements": { - "yunohost": ">= 2.4" + "yunohost": ">= 2.6.3" }, "multi_instance": false, "services": ["nginx", "mysql", "postfix"], diff --git a/scripts/install b/scripts/install index a30b6e1..8cdbe5c 100755 --- a/scripts/install +++ b/scripts/install @@ -25,11 +25,7 @@ db_user=ihatemoney secret_key=`openssl rand -base64 32` mails_sender="no-reply@${domain}" -sudo yunohost app checkurl $domain$path -a ihatemoney -if [[ ! $? -eq 0 ]]; then - ynh_die "${domain}${path} is not available" -fi - +ynh_webpath_register $app $domain $path # Configure database ynh_mysql_create_db "$db_name" "$db_user" "$db_pwd" diff --git a/scripts/restore b/scripts/restore index a2f6a7c..8317037 100644 --- a/scripts/restore +++ b/scripts/restore @@ -27,8 +27,7 @@ fi source _common.sh -sudo yunohost app checkurl "${domain}${path}" -a "$app" \ - || ynh_die "The path ${domain}${path} is not available for app installation." +ynh_webpath_register $app $domain $path test -d $INSTALL_DIR && ynh_die \ "The destination directory '$INSTALL_DIR' already exists.\