From 35d2aeeb8635bb24421a3dfcdb872862a2693999 Mon Sep 17 00:00:00 2001 From: vick Date: Tue, 19 Jun 2018 15:42:41 +0200 Subject: [PATCH] Use non deprecated helper --- scripts/.fonctions | 3 ++- scripts/remove | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/.fonctions b/scripts/.fonctions index f14893d..5f654da 100644 --- a/scripts/.fonctions +++ b/scripts/.fonctions @@ -44,7 +44,8 @@ CHECK_PATH () { # Vérifie la présence du / en début de path. Et son absence # Check domain and path availibility CHECK_DOMAINPATH () { # Vérifie la disponibilité du path et du domaine. - sudo yunohost app checkurl $domain$path -a $app + ynh_webpath_available $domain $path + ynh_webpath_register $app $domain $path } # Check destination folder is not used already diff --git a/scripts/remove b/scripts/remove index 3cd6009..d8f4db0 100755 --- a/scripts/remove +++ b/scripts/remove @@ -66,7 +66,7 @@ fi # Remove app dependencies if ynh_package_is_installed "cops-deps"; then - ynh_package_autoremove "cops-deps" + ynh_remove_app_dependencies fi # Remove the user account~