Drop use of checkurl in remaining test apps

This commit is contained in:
Alexandre Aubin 2021-06-04 18:09:47 +02:00
parent 2c413ce9e2
commit 7717921421
2 changed files with 2 additions and 5 deletions

View file

@ -11,7 +11,7 @@ helper_to_test=$YNH_APP_ARG_HELPER_TO_TEST
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
# Check domain/path availability # Check domain/path availability
sudo yunohost app checkurl $domain/$path -a $app ynh_webpath_register --app=$app --domain=$domain --path_url=$path
# Register mode of restoration # Register mode of restoration
ynh_app_setting_set $app helper_to_test $helper_to_test ynh_app_setting_set $app helper_to_test $helper_to_test

View file

@ -8,10 +8,7 @@ domain=$YNH_APP_ARG_DOMAIN
path=$YNH_APP_ARG_PATH path=$YNH_APP_ARG_PATH
# Check domain/path availability # Check domain/path availability
yunohost app checkurl $domain$path -a $app ynh_webpath_register --app=$app --domain=$domain --path_url=$path
if [[ ! $? -eq 0 ]]; then
exit 1
fi
if [[ "$path" == "" ]]; then if [[ "$path" == "" ]]; then
sed -i "s@PATHTOCHANGE@/@g" ../conf/nginx.conf sed -i "s@PATHTOCHANGE@/@g" ../conf/nginx.conf