Skip to content

Commit c4f8cf9

Browse files
kuanyu99abdosi
authored andcommitted
[config-setup]: Fix a bug in checking if updategraph is enabled (sonic-net#7093)
Encounter error during "config-setup boot" if the updategraph is enabled. How I did it Correct the code inside the config-setup script. Remove the space between the assignment operator. How to verify it Remove the /etc/sonic/config_db.json and reboot the device. Originally, it will return following error after boot up. rv: command not found After modification, it can correctly parse the status of updategraph without error.
1 parent b6acac4 commit c4f8cf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

files/image_config/config-setup/config-setup

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ updategraph_is_enabled()
155155
rv=1
156156
if [ -e ${UPDATEGRAPH_CONF} ]; then
157157
updategraph_mode=$(grep enabled ${UPDATEGRAPH_CONF} | head -n 1 | cut -f2 -d=)
158-
[ "${updategraph_mode}" = "true" ] && rv = 0
158+
[ "${updategraph_mode}" = "true" ] && rv=0
159159
fi
160160
return $rv
161161
}

0 commit comments

Comments
 (0)