1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/syncthing_ynh.git synced 2024-09-03 20:26:23 +02:00

switch domain/path availability check

This commit is contained in:
yalh76 2019-04-13 15:44:40 +02:00
parent c822fc9ffa
commit 7fc85b6148

View file

@ -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