mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
check for subdomain directly in the script
Signed-off-by: Daniel Hansson <mailto@danielhansson.nu>
This commit is contained in:
parent
ab123163e1
commit
a87cf8be11
@ -29,13 +29,16 @@ fi
|
||||
while :
|
||||
do
|
||||
# Ask for subdomain
|
||||
SUBDOMAIN=$(input_box_flow "Please enter the subdomain you want to add or delete, e.g: yoursubdomain")
|
||||
# Check if subdomain contains a dot
|
||||
if echo "$SUBDOMAIN" | grep '\.' >/dev/null 2>&1
|
||||
if [ -z $SUBDOMAIN ]
|
||||
then
|
||||
msg_box "Please *only* enter the subomain name like 'yoursubdomain', not 'yoursubdomain.yourdomain.io'."
|
||||
else
|
||||
break
|
||||
SUBDOMAIN=$(input_box_flow "Please enter the subdomain you want to add or delete, e.g: yoursubdomain")
|
||||
# Check if subdomain contains a dot
|
||||
if echo "$SUBDOMAIN" | grep '\.' >/dev/null 2>&1
|
||||
then
|
||||
msg_box "Please *only* enter the subomain name like 'yoursubdomain', not 'yoursubdomain.yourdomain.io'."
|
||||
else
|
||||
break
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user