From 5108c697bc2b43355d30abd0baf41ad9b9f60165 Mon Sep 17 00:00:00 2001 From: Rasmus Thorslund Date: Thu, 23 Jan 2025 11:41:19 +0100 Subject: [PATCH] added sto4 to addhost namecheck --- addhost | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addhost b/addhost index fefe275..4b254fb 100755 --- a/addhost +++ b/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