From 7fc85b61481c1af7bf5090be329a0d5dd535f6dc Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 13 Apr 2019 15:44:40 +0200 Subject: [PATCH] switch domain/path availability check --- scripts/install | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/install b/scripts/install index 352809f..2256ac0 100644 --- a/scripts/install +++ b/scripts/install @@ -39,15 +39,15 @@ SYNCUSER=debian-syncthing SYNCPORT=22000 GUIPORT=8384 -# Check domain/path availability -sudo yunohost app checkurl $domain$path -a syncthing -if [[ ! $? -eq 0 ]]; then - echo $domain$path is not available. Please choose another url for Syncthing. - exit 1 -fi +#================================================= +# CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS +#================================================= +ynh_print_info "Validating installation parameters..." -# Remove trailing "/" for next commands -path=${path%/} + + +# Register (book) web path +ynh_webpath_register $app $domain $path # Check port availability sudo yunohost app checkport $GUIPORT