1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gitlab_ynh.git synced 2024-09-03 18:36:35 +02:00

add check domain/path

This commit is contained in:
bourreP 2018-04-14 18:02:02 +02:00
parent 15a9762042
commit e2900f134c

View file

@ -33,6 +33,10 @@ test -n "$new_path" || new_path="/"
new_path=$(ynh_normalize_url_path $new_path) new_path=$(ynh_normalize_url_path $new_path)
old_path=$(ynh_normalize_url_path $old_path) old_path=$(ynh_normalize_url_path $old_path)
# Check domain/path availability
sudo yunohost app checkurl "${new_domain}${new_path}" -a "$app" \
|| ynh_die "Path not available: ${new_domain}${new_path}"
#================================================= #=================================================
# CHECK WHICH PARTS SHOULD BE CHANGED # CHECK WHICH PARTS SHOULD BE CHANGED
#================================================= #=================================================