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:
parent
c822fc9ffa
commit
7fc85b6148
1 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue