helpers 2.1: remove legacy ynh_webpath_available and ynh_webpath_register

This commit is contained in:
Alexandre Aubin 2024-05-27 22:45:25 +02:00
parent 8b59e315bf
commit f895724a25

View file

@ -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
}