aboutsummaryrefslogtreecommitdiffstats
path: root/main/util-vserver/setup-vs-guest
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-02-23 14:23:51 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-02-29 08:04:49 +0000
commitb31426a7cb6c867fb4eef8d31337ed66945c8d47 (patch)
tree026a5ac038ee941535c83a5a691ad9635b74bde5 /main/util-vserver/setup-vs-guest
parent924600203af8728926fcd03d44e983d247cd438d (diff)
downloadaports-b31426a7cb6c867fb4eef8d31337ed66945c8d47.tar.bz2
aports-b31426a7cb6c867fb4eef8d31337ed66945c8d47.tar.xz
main/util-vserver: upgrade to 0.30.216_pre3025
and allow setup-vs-guest to use FQDN as vserver name
Diffstat (limited to 'main/util-vserver/setup-vs-guest')
-rw-r--r--main/util-vserver/setup-vs-guest4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/util-vserver/setup-vs-guest b/main/util-vserver/setup-vs-guest
index 8a41306699..985be9c3ad 100644
--- a/main/util-vserver/setup-vs-guest
+++ b/main/util-vserver/setup-vs-guest
@@ -131,12 +131,12 @@ ask_until() {
# http://en.wikipedia.org/wiki/Hostname#Restrictions_on_valid_host_names
valid_hostname() {
# check length
- if [ $(echo "$1" | wc -c) -gt 63 ]; then
+ if [ $(echo "$1" | wc -c) -gt 255 ]; then
echo "Hostname '$1' is too long."
return 1
fi
# check that it only contains valid chars
- if ! [ -z "$(echo $1 | sed 's/[0-9a-z-]//g')" ]; then
+ if ! [ -z "$(echo $1 | sed 's/[0-9.a-z-]//g')" ]; then
echo "Hostname must only contain letters (a-z), digits (0-9) or -"
return 1
fi