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

Introduced helper ynh_webpath_register instead of checkurl

This commit is contained in:
Olivier BILHAUT 2018-01-16 17:05:23 +01:00 committed by Jeff
parent 3fbe2c2d73
commit 76f2c79830

View file

@ -23,8 +23,11 @@ version=$(cat ../sources/version)
fi fi
# Check domain/path availability # Check domain/path availability
sudo yunohost app checkurl "${domain}${path}" -a "$app" \ # sudo yunohost app checkurl "${domain}${path}" -a "$app" \
|| ynh_die "path not available: ${domain}${path}" # || ynh_die "path not available: ${domain}${path}"
sudo ynh_webpath_register $app $domain $path \
|| ynh_die "path not available and may be already used : ${domain}${path}"
# Check user parameter # Check user parameter
ynh_user_exists "$admin" \ ynh_user_exists "$admin" \