Skip to content

Commit

Permalink
replace source with dot (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaByte875 authored Sep 19, 2023
1 parent a11a36c commit 8901f67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apis/apps/v1alpha1/nebulacluster_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ func generateContainers(c NebulaClusterComponent, cm *corev1.ConfigMap) []corev1

cmd := []string{"/bin/sh", "-ecx"}
if c.ComponentType() == GraphdComponentType && nc.IsIntraZoneReadingEnabled() {
cmd = append(cmd, fmt.Sprintf("source /node/zone; echo $NODE_ZONE; exec /usr/local/nebula/bin/nebula-%s", componentType)+
cmd = append(cmd, fmt.Sprintf(". /node/zone; echo $NODE_ZONE; exec /usr/local/nebula/bin/nebula-%s", componentType)+
fmt.Sprintf(" --flagfile=/usr/local/nebula/etc/nebula-%s.conf", componentType)+flags)
} else {
cmd = append(cmd, fmt.Sprintf("exec /usr/local/nebula/bin/nebula-%s", componentType)+
Expand Down

0 comments on commit 8901f67

Please sign in to comment.