diff --git a/helpers/helpers.v2.1.d/setting b/helpers/helpers.v2.1.d/setting index 67c4d5f0d..60dbf0efc 100644 --- a/helpers/helpers.v2.1.d/setting +++ b/helpers/helpers.v2.1.d/setting @@ -95,49 +95,3 @@ else: EOF set -o xtrace # set -x } - -# Check availability of a web path -# -# [packagingv1] -# -# usage: ynh_webpath_available --domain=domain --path_url=path -# | arg: -d, --domain= - the domain/host of the url -# | arg: -p, --path_url= - the web path to check the availability of -# -# example: ynh_webpath_available --domain=some.domain.tld --path_url=/coffee -# -# Requires YunoHost version 2.6.4 or higher. -ynh_webpath_available() { - # ============ Argument parsing ============= - local -A args_array=([d]=domain= [p]=path_url=) - local domain - local path_url - ynh_handle_getopts_args "$@" - # =========================================== - - yunohost domain url-available $domain $path_url -} - -# Register/book a web path for an app -# -# [packagingv1] -# -# usage: ynh_webpath_register --app=app --domain=domain --path_url=path -# | arg: -a, --app= - the app for which the domain should be registered -# | arg: -d, --domain= - the domain/host of the web path -# | arg: -p, --path_url= - the web path to be registered -# -# example: ynh_webpath_register --app=wordpress --domain=some.domain.tld --path_url=/coffee -# -# Requires YunoHost version 2.6.4 or higher. -ynh_webpath_register() { - # ============ Argument parsing ============= - local -A args_array=([a]=app= [d]=domain= [p]=path_url=) - local app - local domain - local path_url - ynh_handle_getopts_args "$@" - # =========================================== - - yunohost app register-url $app $domain $path_url -}