Skip to content

Commit

Permalink
[config-setup]: Fix a bug in checking if updategraph is enabled (soni…
Browse files Browse the repository at this point in the history
…c-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.
  • Loading branch information
kuanyu99 authored and raphaelt-nvidia committed May 13, 2021
1 parent 1e8f51b commit 0162c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/image_config/config-setup/config-setup
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ updategraph_is_enabled()
rv=1
if [ -e ${UPDATEGRAPH_CONF} ]; then
updategraph_mode=$(grep enabled ${UPDATEGRAPH_CONF} | head -n 1 | cut -f2 -d=)
[ "${updategraph_mode}" = "true" ] && rv = 0
[ "${updategraph_mode}" = "true" ] && rv=0
fi
return $rv
}
Expand Down

0 comments on commit 0162c61

Please sign in to comment.