Fix typo in config-setup service (#4388)
This commit is contained in:
parent
2ecf808556
commit
de377ebccd
@ -247,7 +247,7 @@ generate_config()
|
|||||||
# is created
|
# is created
|
||||||
# - If updategraph is enabled and ZTP is disabled, updategraph initializes
|
# - If updategraph is enabled and ZTP is disabled, updategraph initializes
|
||||||
# configuration
|
# configuration
|
||||||
do_config_intialization()
|
do_config_initialization()
|
||||||
{
|
{
|
||||||
if ! updategraph_is_enabled ; then
|
if ! updategraph_is_enabled ; then
|
||||||
if ! ztp_is_enabled ; then
|
if ! ztp_is_enabled ; then
|
||||||
@ -350,12 +350,12 @@ boot_config()
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -e /tmp/pending_config_initialization ] || [ -e ${CONFIG_SETUP_INITIALIZATION_FLAG} ]; then
|
if [ -e /tmp/pending_config_initialization ] || [ -e ${CONFIG_SETUP_INITIALIZATION_FLAG} ]; then
|
||||||
do_config_intialization
|
do_config_initialization
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If no startup configuration is found, create a configuration to be used
|
# If no startup configuration is found, create a configuration to be used
|
||||||
if [ ! -e ${CONFIG_DB_JSON} ]; then
|
if [ ! -e ${CONFIG_DB_JSON} ]; then
|
||||||
do_config_intialization
|
do_config_initialization
|
||||||
# force ZTP to restart
|
# force ZTP to restart
|
||||||
if ztp_is_enabled ; then
|
if ztp_is_enabled ; then
|
||||||
ztp_status=$(ztp status -c)
|
ztp_status=$(ztp status -c)
|
||||||
|
Loading…
Reference in New Issue
Block a user