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
|
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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue