mirror of
				https://github.com/Telecominfraproject/ols-nos.git
				synced 2025-11-03 19:47:56 +00:00 
			
		
		
		
	* [MultiDB] (except ./src and ./dockers dirs): replace redis-cli with sonic-db-cli and use new DBConnector * update comment for a potential bug * update comment * add TODO maker as review reqirement
		
			
				
	
	
		
			14 lines
		
	
	
		
			325 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			325 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/usr/bin/env bash
 | 
						|
 | 
						|
# Wait until redis starts
 | 
						|
until [[ $(redis-cli ping | grep -c PONG) -gt 0 ]]; do
 | 
						|
  sleep 1;
 | 
						|
done
 | 
						|
 | 
						|
# If there is a config db dump file, load it
 | 
						|
if [ -r /etc/sonic/config_db.json ]; then
 | 
						|
    sonic-cfggen -j /etc/sonic/config_db.json --write-to-db
 | 
						|
fi
 | 
						|
 | 
						|
sonic-db-cli CONFIG_DB SET "CONFIG_DB_INITIALIZED" "1"
 |