Skip to content

Commit a36527a

Browse files
authored
Store ConfigDB init indicator boolean value as 1/0 in Redis to be language-agnostic (#1352)
1 parent 175bae8 commit a36527a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

files/scripts/configdb-load.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ if [ -r /etc/sonic/config_db.json ]; then
1010
sonic-cfggen -j /etc/sonic/config_db.json --write-to-db
1111
fi
1212

13-
echo -en "SELECT 4\nSET CONFIG_DB_INITIALIZED true" | redis-cli
14-
13+
redis-cli -n 4 SET "CONFIG_DB_INITIALIZED" "1"

src/sonic-utilities

0 commit comments

Comments
 (0)