mirror of
https://github.com/YunoHost/test_apps.git
synced 2024-09-03 20:06:29 +02:00
Drop use of checkurl in remaining test apps
This commit is contained in:
parent
2c413ce9e2
commit
7717921421
2 changed files with 2 additions and 5 deletions
|
@ -11,7 +11,7 @@ helper_to_test=$YNH_APP_ARG_HELPER_TO_TEST
|
|||
source /usr/share/yunohost/helpers
|
||||
|
||||
# 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
|
||||
ynh_app_setting_set $app helper_to_test $helper_to_test
|
||||
|
|
|
@ -8,10 +8,7 @@ domain=$YNH_APP_ARG_DOMAIN
|
|||
path=$YNH_APP_ARG_PATH
|
||||
|
||||
# Check domain/path availability
|
||||
yunohost app checkurl $domain$path -a $app
|
||||
if [[ ! $? -eq 0 ]]; then
|
||||
exit 1
|
||||
fi
|
||||
ynh_webpath_register --app=$app --domain=$domain --path_url=$path
|
||||
|
||||
if [[ "$path" == "" ]]; then
|
||||
sed -i "s@PATHTOCHANGE@/@g" ../conf/nginx.conf
|
||||
|
|
Loading…
Add table
Reference in a new issue