Skip to content

Commit 9031775

Browse files
authored
Update preinstall.sh
Remove >1 check as any value is considered to be a single config sync group
1 parent 62ad8c4 commit 9031775

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

scripts/packages/preinstall.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,10 @@ update_config_file() {
8484
err_exit "Upgrade aborted: no token found in v2 config"
8585
fi
8686

87-
# Extract instance_group if present, ensure only one group
87+
# Extract instance_group if present
8888
instance_group=""
8989
if [ -f "$AGENT_DYNAMIC_CONFIG_FILE" ] && instance_line=$(grep "instance_group:" "$AGENT_DYNAMIC_CONFIG_FILE"); then
9090
instance_group=$(echo "$instance_line" | cut -d ":" -f 2 | xargs)
91-
# Fail if multiple groups detected
92-
if echo "$instance_group" | grep -q ','; then
93-
err_exit "Upgrade aborted: multiple Config Sync Groups detected; An instance can join only one Config Sync Group at a time"
94-
fi
9591
echo "Migrating existing Config Sync Group: $instance_group"
9692
labels="
9793
labels:

0 commit comments

Comments
 (0)