added sto4 to addhost namecheck
This commit is contained in:
parent
c7b80fc8e4
commit
5108c697bc
1 changed files with 1 additions and 1 deletions
2
addhost
2
addhost
|
@ -41,7 +41,7 @@ if test -z "$cmd_hostname"; then
|
|||
fi
|
||||
|
||||
if [[ ! $naming_override ]]; then
|
||||
if [[ ! "$cmd_hostname" =~ ^([a-z]+)-(sthb|dco|tug|sto1|sto3)-(prod|dev|stage|test|qa)-([1-9][0-9]*).sunet.se$ ]]; then
|
||||
if [[ ! "$cmd_hostname" =~ ^([a-z]+)-(sthb|dco|tug|sto1|sto3|sto4)-(prod|dev|stage|test|qa)-([1-9][0-9]*).sunet.se$ ]]; then
|
||||
echo "$cmd_hostname is not following the naming standard: function-location-environment-number.sunet.se"
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue