mirror of
				https://github.com/Telecominfraproject/ols-nos.git
				synced 2025-10-30 17:48:09 +00:00 
			
		
		
		
	[docker-database-init.sh]: Fix wrong creating of database_global.json in multi asic platform (#17221)
Fix bug: #17161 (comment) multi-asic platforms it will never go to the else part as DATABASE_TYPE is always "" Microsoft ADO (number only): 25072889 Move the checker NAMESPACE_ID == "" back Signed-off-by: Ze Gan <ganze718@gmail.com>
This commit is contained in:
		| @@ -70,8 +70,8 @@ if [[ $DATABASE_TYPE == "chassisdb" ]]; then | ||||
|     exit 0 | ||||
| fi | ||||
|  | ||||
| # copy/generate the database_global.json file if this is global database service in multi asic platform. | ||||
| if [[ $DATABASE_TYPE == "" ]] && [[ $NAMESPACE_COUNT -gt 1 || $NUM_DPU -gt 1 ]] | ||||
| # copy/generate the database_global.json file if this is global database service in multi asic/smart switch platform. | ||||
| if [[ $NAMESPACE_ID == "" && $DATABASE_TYPE == "" && ( $NAMESPACE_COUNT -gt 1 || $NUM_DPU -gt 1) ]] | ||||
| then | ||||
|     if [ -f /etc/sonic/database_global.json ]; then | ||||
|         cp /etc/sonic/database_global.json $REDIS_DIR/sonic-db/database_global.json | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Ze Gan
					Ze Gan